You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Completed the support for plugins! It is not possible to add plugins.
Not all APIs are provided yet, please request whathever you are missing. Some example plugins are provided in demos/plugins. Just copy them to a folder in your project named addons/ and then enable them from the project settings. Have fun!
This commit is contained in:
@@ -267,17 +267,15 @@ PathSpatialGizmo::PathSpatialGizmo(Path* p_path){
|
||||
|
||||
}
|
||||
|
||||
bool PathEditorPlugin::create_spatial_gizmo(Spatial* p_spatial) {
|
||||
Ref<SpatialEditorGizmo> PathEditorPlugin::create_spatial_gizmo(Spatial* p_spatial) {
|
||||
|
||||
|
||||
if (p_spatial->cast_to<Path>()) {
|
||||
|
||||
|
||||
Ref<PathSpatialGizmo> psg = memnew( PathSpatialGizmo(p_spatial->cast_to<Path>()));
|
||||
p_spatial->set_gizmo(psg);
|
||||
return true;
|
||||
return memnew( PathSpatialGizmo(p_spatial->cast_to<Path>()));
|
||||
}
|
||||
|
||||
return false;
|
||||
return Ref<SpatialEditorGizmo>();
|
||||
}
|
||||
|
||||
bool PathEditorPlugin::forward_spatial_input_event(Camera* p_camera,const InputEvent& p_event) {
|
||||
@@ -538,7 +536,7 @@ PathEditorPlugin::PathEditorPlugin(EditorNode *p_node) {
|
||||
path_thin_material->set_flag(Material::FLAG_DOUBLE_SIDED,true);
|
||||
path_thin_material->set_flag(Material::FLAG_UNSHADED,true);
|
||||
|
||||
SpatialEditor::get_singleton()->add_gizmo_plugin(this);
|
||||
// SpatialEditor::get_singleton()->add_gizmo_plugin(this);
|
||||
|
||||
sep = memnew( VSeparator);
|
||||
sep->hide();
|
||||
|
||||
Reference in New Issue
Block a user