Commit Graph

159 Commits

Author SHA1 Message Date
jamie dale
caef476ee3 Improved error message when attempting to create a container property in Python that nests another container
This isn't supported by the reflection system and is already disallowed, but the error message was confusing. It now gives an error message more like UHT, and suggests using a struct as an alternative to direct nesting.

#jira
#rb Lauren.Barnes

#ROBOMERGE-SOURCE: CL 12253865 in //UE4/Release-4.25/... via CL 12253868
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v668-12245121)

[CL 12296563 by jamie dale in Main branch]
2020-03-19 10:59:09 -04:00
jamie dale
a1dd31468e Improved error message when creating a Python property for a container type
It is a common mistake to omit the type(s) for the container elements, so this case will now present an error stating the reason and the correct fix.

#jira
#rb Lauren.Barnes

#ROBOMERGE-SOURCE: CL 12251952 in //UE4/Release-4.25/... via CL 12251955
#ROBOMERGE-BOT: RELEASE (Release-4.25Plus -> Main) (v668-12245121)

[CL 12251961 by jamie dale in Main branch]
2020-03-18 16:28:23 -04:00
Rolando Caloca
5b82f15def Copying //UE4/Dev-RenderPlat-Staging@11388153 to //UE4/Main
#rb none
#rnx

[CL 11388545 by Rolando Caloca in Main branch]
2020-02-12 13:27:19 -05:00
robert manuszewski
b938e59c9b Reimplementing FProperty changes from //UE4/Main
+ Reimplemented FProperty related fixed from //UE4/Main:
CL#10791312, 10804850, 10851666, 10855122, 10855198, 10942138, 11030611, 11030639, 11032261, 11061515, 11136964,11138881, 11214238, 11214865

#rb none (previously reviewed in Dev-Core)
[FYI] Chris.Bunnner, Daniel.Lamb


#ROBOMERGE-OWNER: robert.manuszewski
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 11302985 via CL 11303011 via CL 11303019
#ROBOMERGE-BOT: (v0-11244347)

[CL 11303183 by robert manuszewski in Main branch]
2020-02-10 08:06:56 -05:00
Max Chen
b4881d8bf8 Copying //UE4/Dev-Editor to Dev-Tools-Staging (//UE4/Dev-Tools-Staging) @11123875
#rb none
#jira none

[CL 11123880 by Max Chen in Dev-Tools-Staging branch]
2020-01-27 20:11:15 -05:00
Juan Canada
f396f56a0b Merging //UE4/Dev-Main@11042002 to Dev-RenderPlat-Staging(//UE4/Dev-Rendering)
#rnx
#rb none

[CL 11075443 by Juan Canada in Dev-RenderPlat-Staging branch]
2020-01-21 14:54:20 -05:00
JeanMichel Dignard
dc2d35695f Copyright fixes
#rb none
#rnx

[CL 10910710 by JeanMichel Dignard in Dev-Tools-Staging branch]
2020-01-08 17:11:23 -05:00
JeanMichel Dignard
70d074639f Merging //UE4/Dev-Main @ 10886849 to Dev-Tools-Staging (//UE4/Dev-Tools-Staging)
#rb none
#rnx

[CL 10906274 by JeanMichel Dignard in Dev-Tools-Staging branch]
2020-01-08 13:26:18 -05:00
jeanmichel dignard
2ce7666d2d Copying //UE4/Dev-Core [at] 10708550 to Dev-Main (//UE4/Dev-Main)
#rb none

#ROBOMERGE-OWNER: jeanmichel.dignard
#ROBOMERGE-AUTHOR: robert.manuszewski
#ROBOMERGE-SOURCE: CL 10708666 in //UE4/Main/...
#ROBOMERGE-BOT: TOOLS (Main -> Dev-Tools-Staging) (v626-10872990)

[CL 10898071 by jeanmichel dignard in Dev-Tools-Staging branch]
2020-01-07 15:54:23 -05:00
Juan Canada
2ecf4f9708 Merging //UE4/Dev-Main@10877709 to Dev-RenderPlat-Staging(//UE4/Dev-Rendering)
#rnx
#rb none

[CL 10895568 by Juan Canada in Dev-RenderPlat-Staging branch]
2020-01-07 13:45:01 -05:00
james mcnatton
023f6090b2 Expose functions to register and unregister callbacks for python shutdown
#ROBOMERGE-SOURCE: CL 10892013 via CL 10892030
#ROBOMERGE-BOT: (v626-10872990)

[CL 10892051 by james mcnatton in Main branch]
2020-01-07 10:59:08 -05:00
Marc Audy
360d078ca3 Second batch of remaining Engine copyright updates.
#rnx
#rb none

[CL 10871248 by Marc Audy in Main branch]
2019-12-27 09:26:59 -05:00
Chris Gagnon
346a4b05ea Copy up from Dev-Editor @10681378
#rb none

[CL 10837446 by Chris Gagnon in Dev-Tools-Staging branch]
2019-12-19 18:07:47 -05:00
Jamie Dale
7dab7f26af Ensure start-up scripts run when using Python in commandlet mode
#rb none

[CL 10796194 by Jamie Dale in Main branch]
2019-12-18 10:36:58 -05:00
Jamie Dale
964231997f Defer the OnPythonInitialized notification until after start-up scripts have run
This delegate was previously useless as it would run when the PythonScriptPlugin module was loaded, which meant that no-one could bind to it

#rb none

[CL 10795922 by Jamie Dale in Main branch]
2019-12-18 10:30:26 -05:00
Jamie Dale
93b10e9d9c Python FProperty fixes
- Fixed Python container wrappers leaking transient property instances.
   - PyUtil::TPropOnScope will manage an optionally owned property instance, deleting it if required when it goes out-of-scope.
 - Fixed Python container wrappers crashing during GC due to calling FReferenceCollector::AddReferencedObjects passing a FProperty-based type.
 - Fixed Python delegate wrappers crashing when called with arguments due to checking Children rather than ChildProperties.

#rb Robert.Manuszewski
#rnx

[CL 10791312 by Jamie Dale in Main branch]
2019-12-18 08:41:22 -05:00
Robert Manuszewski
7b6f840f7f Copying //UE4/Dev-Core @ 10708550 to Dev-Main (//UE4/Dev-Main)
#rb none

[CL 10708666 by Robert Manuszewski in Main branch]
2019-12-13 11:07:03 -05:00
Jamie Dale
c59d31c72d Emit RuntimeError in Python for Blueprint execution errors
This previously used the generic Exception type

#fyi Andrew.Rodham
#rb none

[CL 10497227 by Jamie Dale in Dev-Editor branch]
2019-12-03 11:48:43 -05:00
Jamie Dale
daa908ed5a Fix CIS static analysis warning (unreachable code)
#rb none
#rnx

[CL 10479149 by Jamie Dale in Dev-Editor branch]
2019-11-28 17:16:47 -05:00
Jamie Dale
6ed3c75acf Improved Python error reporting for invalid ScriptName and ScriptMethod values
Bad values here can cause the unreal.py file to fail to parse, so we now validate that user-defined values are valid for Python when generating the glue and report an error for any that are invalid.

This also re-adds the type prefixes to any class, struct, or enum types that would start with a number without their prefix. Once again, this is needed to avoid invalid symbol names in the unreal.py file.

#jira UE-85176
#rb none

[CL 10479002 by Jamie Dale in Dev-Editor branch]
2019-11-28 15:42:26 -05:00
Jamie Dale
d8cba515b4 Disable register warnings for C code included into C++17
#jira UE-85039
#rb Ben.Marsh
#rnx

[CL 10461373 by Jamie Dale in Dev-Editor branch]
2019-11-26 16:41:45 -05:00
Jamie Dale
47d89a1e16 Added a Blueprint node for calling Python with args
This allows people to create a Blueprint node that can define a blob of literal Python script, along with wildcard inputs and outputs to be used by the script itself.

The node takes care of marshalling data in and out of the Python script, and allows people to invoke custom Python from Blueprints without relying on Python generated BPFL types.

#jira UE-84932
#rb Dan.OConnor

[CL 10421545 by Jamie Dale in Dev-Editor branch]
2019-11-25 14:20:28 -05:00
Jamie Dale
b266566090 Clean-up native module references when shutting down Python
#rb Rex.Hill

[CL 10355258 by Jamie Dale in Dev-Editor branch]
2019-11-21 14:55:43 -05:00
Jamie Dale
da52d61658 PySlate now checks that FSlateApplication is available rather than crashing
#rb Rex.Hill

[CL 10349283 by Jamie Dale in Dev-Editor branch]
2019-11-21 14:10:27 -05:00
Jamie Dale
6d5ffe9fa3 Implemented set_editor_properties for Python wrapped structs
This will attempt to notify the nearest object in the Python owner context stack, and is otherwise identical to the implementation for wrapped objects (see 10265342).

#rb Lauren.Barnes
#rnx

[CL 10343893 by Jamie Dale in Dev-Editor branch]
2019-11-21 13:32:25 -05:00