You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
[MP] Cleanup and fixes for replication plugin.
- Remove dead code. - Fix "Add from path" adding the wrong string when targeting root node.
This commit is contained in:
@@ -61,7 +61,6 @@ private:
|
||||
Ref<SceneReplicationConfig> config;
|
||||
NodePath deleting;
|
||||
Tree *tree = nullptr;
|
||||
bool keying = false;
|
||||
|
||||
PropertySelector *prop_selector = nullptr;
|
||||
SceneTreeDialog *pick_node = nullptr;
|
||||
@@ -98,11 +97,8 @@ protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
public:
|
||||
void update_keying();
|
||||
void edit(MultiplayerSynchronizer *p_object);
|
||||
bool has_keying() const { return keying; }
|
||||
MultiplayerSynchronizer *get_current() const { return current; }
|
||||
void property_keyed(const String &p_property);
|
||||
|
||||
Button *get_pin() { return pin; }
|
||||
ReplicationEditor();
|
||||
@@ -117,8 +113,6 @@ private:
|
||||
ReplicationEditor *repl_editor = nullptr;
|
||||
|
||||
void _node_removed(Node *p_node);
|
||||
void _keying_changed();
|
||||
void _property_keyed(const String &p_keyed, const Variant &p_value, bool p_advance);
|
||||
|
||||
void _pinned();
|
||||
|
||||
@@ -133,17 +127,5 @@ public:
|
||||
ReplicationEditorPlugin();
|
||||
~ReplicationEditorPlugin();
|
||||
};
|
||||
#else
|
||||
class ReplicationEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(ReplicationEditorPlugin, EditorPlugin);
|
||||
|
||||
public:
|
||||
virtual void edit(Object *p_object) override {}
|
||||
virtual bool handles(Object *p_object) const override { return false; }
|
||||
virtual void make_visible(bool p_visible) override {}
|
||||
|
||||
ReplicationEditorPlugin() {}
|
||||
~ReplicationEditorPlugin() {}
|
||||
};
|
||||
|
||||
#endif // REPLICATION_EDITOR_PLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user