mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Decouple EditorInterface from EditorPlugin
- Simplify some includes in the process. - Also exposes EditorInterface.movie_maker_enabled as a property.
This commit is contained in:
		
							parent
							
								
									055ee1276f
								
							
						
					
					
						commit
						49d7041d34
					
				
					 25 changed files with 632 additions and 481 deletions
				
			
		|  | @ -34,6 +34,7 @@ | |||
| #include "core/core_string_names.h" | ||||
| #include "core/input/input.h" | ||||
| #include "core/os/keyboard.h" | ||||
| #include "editor/editor_interface.h" | ||||
| #include "editor/editor_node.h" | ||||
| #include "editor/editor_scale.h" | ||||
| #include "editor/editor_settings.h" | ||||
|  | @ -780,7 +781,7 @@ CurveEditorPlugin::CurveEditorPlugin() { | |||
| 	curve_plugin.instantiate(); | ||||
| 	EditorInspector::add_inspector_plugin(curve_plugin); | ||||
| 
 | ||||
| 	get_editor_interface()->get_resource_previewer()->add_preview_generator(memnew(CurvePreviewGenerator)); | ||||
| 	EditorInterface::get_singleton()->get_resource_previewer()->add_preview_generator(memnew(CurvePreviewGenerator)); | ||||
| } | ||||
| 
 | ||||
| //-----------------------------------
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yuri Sizov
						Yuri Sizov