Commit Graph

109 Commits

Author SHA1 Message Date
jamie dale
58565d5084 Ensure Python callable wrapper types remove the Native flag from any function signatures that they duplicate
Failing to do this leads to a Native instance inside a non-native instance, which causes GC confusion

#jira UE-74616
#rb Lauren.Ridge

#ROBOMERGE-VERSION: 348-6547088
#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 6536762 via CL 6538364 via CL 6538485
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6564488 by jamie dale in Dev-Anim branch]
2019-05-18 10:42:10 -04:00
Marc Audy
a3cfddf7f6 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 6547008
#rb
#rnx

[CL 6548655 by Marc Audy in Dev-Framework branch]
2019-05-17 17:18:20 -04:00
jamie dale
1335e6f993 Fixed name conflict when re-instancing Python generated structs
#jira UE-74324
#rb Lauren.Ridge
#lockdown Cristina.Riveron

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 6405053 in //UE4/Release-4.22/... via CL 6405057
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6465078 by jamie dale in Dev-Anim branch]
2019-05-15 04:23:29 -04:00
Marc Audy
a59ec411f9 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 6142244
#rb
#rnx

[CL 6173076 by Marc Audy in Dev-Framework branch]
2019-04-30 10:19:36 -04:00
jamie dale
8dd60e6f4e init_unreal.py files are now run using the console scope to let them set-up the console environment in the editor
#jira
[FYI] James.McNatton
#rb Francis.Hurteau

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 6112368 via CL 6113193 via CL 6113292
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6130838 by jamie dale in Dev-Anim branch]
2019-04-26 22:36:23 -04:00
jamie dale
b5160d9dc0 Prevent a crash when a Python generated class pending reinstancing is GC'd
We now ARO these pending types to stop them being GC'd, and added unreal.flush_generated_type_reinstancing() to allow you to force the reinstancing to happen at a certain point in your script (rather than when it ends, or on the next Tick).

#jira UE-72853
#rb Chris.Gagnon
#lockdown Cristina.Riveron

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 5956901 in //UE4/Release-4.22/... via CL 5956925
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5962663 by jamie dale in Dev-Anim branch]
2019-04-17 21:03:26 -04:00
Ben Zeigler
e873f817b2 Hook up referencer name for editor FGCObjects that are likely to hold world references
#rb marc.audy

[CL 5536472 by Ben Zeigler in Dev-Framework branch]
2019-03-25 14:40:23 -04:00
Marc Audy
502f469036 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 5503639
#rb
#rnx

[CL 5504188 by Marc Audy in Dev-Framework branch]
2019-03-22 14:59:27 -04:00
steve robb
6e246488a8 Fix for warnings about engine classes being hot reloaded when they haven't even changed.
#jira UE-71581
#rb none
[FYI] jamie.dale
#lockdown cristina.riveron

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 5459196 in //UE4/Release-4.22/... via CL 5459199
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5475456 by steve robb in Dev-Anim branch]
2019-03-20 13:21:48 -04:00
Marc Audy
82e0666ce7 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 5450266
#rb
#rnx

[CL 5459329 by Marc Audy in Dev-Framework branch]
2019-03-19 16:16:11 -04:00
jamie dale
2550ccacce Fixed Python doc generation
#jira
#rb none
[CODEREVIEW] Robb.Surridge
#rnx

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 5439514 in //UE4/Release-4.22/... via CL 5439516
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5441725 by jamie dale in Dev-Anim branch]
2019-03-18 21:13:18 -04:00
marc audy
d5232114b6 Dynamic Multicast delegates can now specify that their storage be stored in a sparse allocation for delegates that are expected to be bound rarely. The memory usage of an unbound sparse delegate is 1 byte instead of 16 bytes (for the empty array), however, a bound sparse delegate will have access overhead to retrieve the invocation list from the sparse object annotation.
The definition of the delegate type must specify the class and property name of the delegate that will use it and the type cannot be used outside of that context or just on the stack.
UMulticastDelegateProperty is now abstract and has 2 subclasses (UMulticastDelegateInlineProperty and UMulticastDelegateSparseProperty). The SparseProperty SignatureFunction will be a USparseDelegateFunction.
The sparse delegates do not work correctly with the python bindings at this point, but this will be visited soon.
#rb Michael.Noland
#jira

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 5295832 via CL 5306530 via CL 5306657
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5322213 by marc audy in Dev-Anim branch]
2019-03-06 18:02:30 -05:00
Marc Audy
6c6b055f0e Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 5271686
#rb
#rnx

[CL 5282523 by Marc Audy in Dev-Framework branch]
2019-03-04 10:23:33 -05:00
Arciel Rekman
f15cf798fc Linux: link symbols used by Python properly (UE-70768).
#rb none

[CL 5274649 by Arciel Rekman in Dev-Editor branch]
2019-03-01 22:35:19 -05:00
jamie dale
ad75832a7a Fixed build error for platforms without a Python SDK available
#rb none

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 5238143 via CL 5240388 via CL 5240463
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5247766 by jamie dale in Dev-Anim branch]
2019-02-28 17:24:32 -05:00
Arciel Rekman
70128fcd1f Make unresolved symbols a compile-time error on Linux.
- This enables reporting of unresolved symbols within a single module. Full reporting (i.e. symbols missing from both library currently being linked and all other
  libraries it is linking to) is not enabled, because it doesn't work with our circular (re)linking scheme. When full reporting is enabled, if module A links to module B
  that links to module A again, then A's symbols referenced in B are reported as unresolved.

- Even with this, some modules cannot be solved at this moment, so this change introduces a setting to opt-out.
   Initially there were 5 modules that needed this opt-out. I solved most of them (some by disabling, since they missed the necessary libs), and now there is only one left.
   Even the last one is solvable (UE-70768), so it is tempting to remove this option. However, I anticipate that there will be moment when a new module addition
   will be breaking CIS due to unresolved symbols, and there will be no immediate and easy way to disable that except for nixing the whole system. Also, licensees may have more.

#rb Ben.Marsh, Anthony.Bills, Brandon.Schaefer
#fyi Marcin.Undak, Michael.Sartain, Brandon.Schaefer

[CL 5237830 by Arciel Rekman in Dev-Editor branch]
2019-02-28 08:52:50 -05:00
Thomas Sarkanen
474bc576ee Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim) @ CL 5236305
#rb none
#jira none

[CL 5236785 by Thomas Sarkanen in Dev-Anim branch]
2019-02-28 04:41:36 -05:00
Chris Gagnon
80918bea22 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 5110714 by Chris Gagnon in Dev-Editor branch]
2019-02-21 13:05:30 -05:00
jamie dale
444c93c75c Editor Utilities now respond to editor requests to cleanse object instances by clearing their references to any objects pending purge
This fixes crashes where they would take references to things like an actor within a world, and then the active editor world was changed (which verifies against GC reference leaks).

#jira UE-69150
[FYI] Michael.Noland
#rb Lauren.Ridge

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 4987801 in //UE4/Release-4.22/... via CL 4987804
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5043990 by jamie dale in Dev-Anim branch]
2019-02-18 14:21:31 -05:00
jamie dale
eb3adf5220 Hide BlueprintInternalUseOnly and CustomThunk functions from Python
BlueprintInternalUseOnly functions are usually designed to be called via a K2 node wrapper, which may provide additional sanitization or data transformation (which Python is unaware of, so cannot mimic).

CustomThunk functions rely on popping Bytecode data off the stack, but Python calls functions natively so there is no Bytecode available and these functions will crash. We hope to address CustomThunk support in the future by synthesizing the correct Bytecode.

#jira UE-69818
#rb none

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: jamie.dale
#ROBOMERGE-SOURCE: CL 4951261 in //UE4/Release-4.22/... via CL 4951262
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5023925 by jamie dale in Dev-Anim branch]
2019-02-16 03:01:33 -05:00
Lina Halper
f7baa58bc9 Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim)
#fyi: Laurent.Delayen, James.Hopkin
#rb: none

[CL 4923303 by Lina Halper in Dev-Anim branch]
2019-02-06 14:35:56 -05:00
Marc Audy
bcc53f72d7 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 4898645
#rb
#rnx

[CL 4917956 by Marc Audy in Dev-Framework branch]
2019-02-05 23:17:27 -05:00
Jamie Dale
0d9d57c7ca Allow editing properties marked with CPF_DisableEditOnInstance on asset instances
#fyi James.McNatton
#rb none

[CL 4845219 by Jamie Dale in Dev-Editor branch]
2019-01-30 13:40:27 -05:00
Chris Gagnon
a48e767b94 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 4835066 by Chris Gagnon in Dev-Editor branch]
2019-01-29 16:15:19 -05:00
Jamie Dale
c057e5d6e6 Fixed Python recent files going to wrong config path
#fyi Arciel.Rekman
#rb none
#lockdown Chris.Gagnon

[CL 4831212 by Jamie Dale in Dev-Editor branch]
2019-01-29 10:34:41 -05:00