Commit Graph

46 Commits

Author SHA1 Message Date
Ryan Schmidt
9eff078337 ModelingMode: add mechanism to schedule actions to process on next editor Tick(). This allows us to defer execution of complex operations like staticmesh rebuild to outside of slate button-click handlers, which (hopefully) will work around some mystery crashes that occur during very deep call stacks (eg when the staticmesh build launches a slowtask progress dialog, that then explicitly processes windows messages, which results in mouse events being processed, which kicks off a hitproxy rendering call, that in turn causes the RHI to try to rebuild rendering data, on the mesh that is being rebuilt - whew!)
#rb none
#rnx
#jira none

[CL 12235070 by Ryan Schmidt in 4.25 branch]
2020-03-17 15:25:40 -04:00
Ryan Schmidt
c520af744a ModelingTools: add some special-case code that allows alt+mouse navigation to work during draw-polygon tool
#rb none
#rnx
#jira none

[CL 12122720 by Ryan Schmidt in 4.25 branch]
2020-03-10 23:41:55 -04:00
Ryan Schmidt
e54e7df699 ModelingTools: Disable override of dynamic exposure because it then falls back to fixed exposure which may result in scene basically becoming all black
#rb none
#rnx
#jira none

[CL 12114158 by Ryan Schmidt in 4.25 branch]
2020-03-10 14:45:36 -04:00
Ryan Schmidt
9c6ec7d4ab Use Engine default vertex color material instead of path to material in QAGame
#rb none
#rnx
#jira UE-90271
#fyi lauren.barnes

[CL 12024329 by Ryan Schmidt in 4.25 branch]
2020-03-06 17:20:15 -05:00
Ryan Schmidt
298ff8495b Fix mouse capture issue in UEdModeInteractiveToolsContext, where user can get stuck in capture state (eg stuck in sculpting brush) by depressing alt key while doing action and then releasing left-mouse with alt-key still down, and then releasing alt. Also copied this fix to UEdMode where the logic had been duplicated.
#rb none
#rnx
#jira UE-90220
#fyi lauren.barnes

[CL 11995406 by Ryan Schmidt in 4.25 branch]
2020-03-05 22:57:19 -05:00
Ryan Schmidt
aabb0dd0bf EdModeInteractiveToolsContext override of ViewportClient now iterates through existing viewports instead of using global GCurrentLevelEditingViewportClient, which is not safe to hold onto as it could be deleted at any time.
#rb none
#rnx
#jira UE-87675

[CL 11887462 by Ryan Schmidt in 4.25 branch]
2020-03-03 16:46:41 -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
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
ryan durand
627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -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
Ryan Schmidt
84b585c2c7 ToolsFramework: use new EditorViewportClient ShowFlags Override functionality to Disable TAA, MotionBlur, and EyeAdaptation during modeling mode
#rb none
#rnx
#fyi lauren.barnes

[CL 10498357 by Ryan Schmidt in Dev-Editor branch]
2019-12-03 13:39:22 -05:00
Ryan Schmidt
b24e692ea3 ToolsFramework: workaround to ignore command hotkeys when in right-mouse fly+WASD mode (hence allowing those keys to be used as hotkeys when not in fly mode). Add an internal InputBehavior to UEdModeInteractiveToolsContext that captures right-mouse with highest priority. During that capture allow fly-mode to occur (ie don't set bLockFlightCamera=true) but set flag that we are in this mode. ModelingToolsEditorMode checks that flag before calling ProcessCommandBindings() on command list.
Note that this prevents right-mouse from being captured by any tool/gizmo (which seems like correct main-viewport behavior since fly mode needs to always work)

#rb none
#rnx
#fyi lauren.barnes

[CL 10495457 by Ryan Schmidt in Dev-Editor branch]
2019-12-03 09:30:19 -05:00
Ryan Schmidt
1818067cc7 ToolsFramework: these changes (copied from Paint Mode) allow fly camera to capture mouse and prevent us from enabling tools during flycam movements
#rb none
#rnx
#fyi lauren.barnes

[CL 10036164 by Ryan Schmidt in Dev-Editor branch]
2019-11-05 20:24:52 -05:00
Ryan Schmidt
9e762b60d3 ToolsFramework: add world-grid snap query that is usable by Tools
#rb none
#rnx

[CL 10031853 by Ryan Schmidt in Dev-Editor branch]
2019-11-05 17:19:53 -05:00
Ryan Schmidt
e24511b0ea ToolsFramework: in Orthographic views, ViewportTransform.Rotation is not initialized, so construct rotation based on similar code in FEditorViewportClient
#rb none
#rnx
#fyi Lauren.Barnes

[CL 9965759 by Ryan Schmidt in Dev-Editor branch]
2019-11-03 20:34:36 -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
ryan schmidt
b23c5506f8 Don't allow Actors being actively sculpted to be deleted in Editor (copy CL 9944430 from Dev-Editor)
#jira UE-81588
#rb none
#rnx

#ROBOMERGE-SOURCE: CL 9944761 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v558-9892490)

[CL 9944765 by ryan schmidt in Main branch]
2019-10-31 17:12:21 -04:00
Ryan Schmidt
ac6721bd1d ModelingTools: add IToolFrameworkComponent UInterface, have UBaseDynamicMeshComponent implement it, and use this to prevent parent Actor from being deleted in UEdModeInteractiveToolsContext
#rb none
#rnx

[CL 9944430 by Ryan Schmidt in Dev-Editor branch]
2019-10-31 17:07:22 -04:00
michael daum
9051204d73 Fix Jira UE-82061
Add signal handling to accept and tear down current tool prior to World destruction

#jira UE-82061

#rb richard.talbot-watkins ryan.schmidt

#ROBOMERGE-SOURCE: CL 9838995 in //UE4/Release-4.24/...
#ROBOMERGE-BOT: RELEASE (Release-4.24 -> Main) (v546-9757112)

[CL 9839006 by michael daum in Main branch]
2019-10-25 10:19:25 -04:00
Lauren Barnes
611820fc19 Moving generic notification functions from EdModeInteractiveToolsContext to InteractiveToolsContext
#rb Ryan.Schmidt
#jira none

[CL 9818320 by Lauren Barnes in Dev-Editor branch]
2019-10-24 14:44:46 -04:00
Chris Gagnon
8ab0638182 Copying //UE4/Dev-Editor to Dev-Main (//UE4/Dev-Main) for 4.24
#rb none

[CL 9325047 by Chris Gagnon in Main branch]
2019-10-01 20:41:42 -04:00
Richard TalbotWatkin
1cd94f81c3 Added StaticMeshDescription module for defining attributes and operations required in editor and at runtime for MeshDescriptions for static meshes.
Provided a path for building MeshDescriptions for static meshes at runtime, and supporting API.
Clarified use of attributes for static meshes; now some attributes may be considered optional.
Added FStaticMeshAttributes, used for fetching and registering all the attributes required by a static mesh.
Added Blueprint interface for building meshes.
Deprecated a number of existing APIs:
 - FMeshDescription methods which referred explicitly to static mesh specific attributes
 - StaticMesh attribute registration has been moved to FStaticMeshAttributes
#rb none

[CL 9123037 by Richard TalbotWatkin in Dev-Editor branch]
2019-09-26 05:03:53 -04:00
Chris Gagnon
211b835c0c Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 9116570 by Chris Gagnon in Dev-Editor branch]
2019-09-25 19:56:41 -04:00
Ryan Schmidt
45956cf80f ModelingMode: Add warning message type and warning message area to Modeling Tools Mode.
#rb none
#rnx

[CL 9053470 by Ryan Schmidt in Dev-Editor branch]
2019-09-24 16:19:08 -04:00
Ryan Schmidt
d55190e47d ToolsFramework: add FToolCommandChange, replace all uses of FCommandChange with it. Move IToolContextTransactionProvider defn to separate file. Add IToolCommandChangeSource interface for downstream code to use. Move FCommandChangeSequence from inside Selection tool up to Framework level.
#rb none
#rnx

[CL 9010050 by Ryan Schmidt in Dev-Editor branch]
2019-09-23 21:52:12 -04:00