Commit Graph

142 Commits

Author SHA1 Message Date
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
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
29fa4b658e Fixed Python memory leak
#rb none
#rnx

[CL 10267523 by Jamie Dale in Dev-Editor branch]
2019-11-15 16:31:57 -05:00
Jamie Dale
8b807289c3 CIS fix
#rb none
#rnx

[CL 10266585 by Jamie Dale in Dev-Editor branch]
2019-11-15 15:40:51 -05:00
Jamie Dale
de4f7490d3 CIS fix
#rb none
#rnx

[CL 10266516 by Jamie Dale in Dev-Editor branch]
2019-11-15 15:37:02 -05:00
Jamie Dale
e96c641170 Added set_editor_properties to let you set multiple properties which only emit a single pre/post change notification
hism_comp.set_editor_properties({
    'cast_shadow': False,
    'instance_start_cull_distance': 12,
    'instance_end_cull_distance': 23,
    })

#rb Lauren.Barnes

[CL 10265342 by Jamie Dale in Dev-Editor branch]
2019-11-15 14:39:19 -05:00
Jamie Dale
046a164ece Exposed UserDefinedEnum types to Python
This is the first phase of allowing Blueprint types to be generated for Python, which must be accessed via unreal.get_blueprint_generated_types(...) as asset names are not guaranteed to be unique, so they're not added to the unreal module.

Once a type has been generated for Python, it will be updated if the underlying asset is changed. Should the asset be deleted then the Python type will be reset to clean state and become mostly unusable.

This change also ensures that the Unreal type pointers referenced by the Python meta-data are ARO'd correctly. This will cause a warning if you try and delete an asset with a type used by Python.

 MyEnum = unreal.get_blueprint_generated_types('/Game/MyEnum') # This can also accept multiple arguments or a list, and will return a tuple of types
 print(MyEnum.MY_ENTRY)

#jira UE-81862, UE-81859
#rb Lauren.Barnes

[CL 10227467 by Jamie Dale in Dev-Editor branch]
2019-11-14 16:52:43 -05:00
Chris Gagnon
d1973355bc Merge Dev-Tools-Stagng tp Dev-Editor
#rb none

[CL 9961726 by Chris Gagnon in Dev-Editor branch]
2019-11-01 17:39:56 -04:00
marc audy
c9c4908ac1 Merging CL# 9893571 as it should not have been deadended
#rb
#rnx


#ROBOMERGE-SOURCE: CL 9900920
#ROBOMERGE-BOT: (v558-9892490)

[CL 9900943 by marc audy in Main branch]
2019-10-31 11:25:06 -04:00
Jamie Dale
5904862070 Added PropertyAccessUtil to contain the common logic of getting and setting properties in a way that emits change notifications
The existing Python code has been ported to use this, and this can also be used by Blueprints (or other C++ setting properties) to allow property changes that emit change notifications.

#jira UE-77388
#rb Chris.Gagnon

[CL 9706346 by Jamie Dale in Dev-Editor branch]
2019-10-18 18:51:40 -04:00
Chris Gagnon
5b7e66b1fb Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor) to CL 9544902 for stream reparenting.
#rb none

[CL 9671142 by Chris Gagnon in Dev-Editor branch]
2019-10-17 19:44:57 -04:00
Jamie Dale
4c9963fda8 Register enum entries from Python in a deterministic order using their value
#fyi Adric.Worley
#rb none

[CL 9576555 by Jamie Dale in Dev-Editor branch]
2019-10-14 17:44:13 -04:00
Jamie Dale
ba3fd09c24 Remove invalid warning when reinstancing Python generated enum types
#fyi Adric.Worley
#rb none

[CL 9573164 by Jamie Dale in Dev-Editor branch]
2019-10-14 15:13:21 -04:00
Rolando Caloca
1a30325d6f Copying //UE4/Dev-RenderPlat-Staging@9551419 to //UE4/Main
#rb none
#rnx

[CL 9551447 by Rolando Caloca in Main branch]
2019-10-11 15:33:31 -04:00
Jamie Dale
764efecd41 Improved invalid parameter error when passing the incorrect struct type to Python
#rb none

[CL 9493857 by Jamie Dale in Main branch]
2019-10-09 16:59:44 -04:00
Jamie Dale
7ab6307cac Fixed typo when accessing property class type during Python glue validation
#fyi Robert.Manuszewski
#rb Robert.Manuszewski
#rnx

[CL 9489709 by Jamie Dale in Main branch]
2019-10-09 12:40:55 -04:00
Jason Bestimt
a530f72f7d Updating from //UE4/Dev-RenderPlat-Staging to Dev-VR (//UE4/Dev-VR) to turn on robomerge
#RB:none

[CL 9106247 by Jason Bestimt in Dev-VR branch]
2019-09-25 16:05:50 -04:00