You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-fix bug in cache for atlas import/export
-fix some menus -fixed bug in out transition curves -detect and remove file:/// in collada -remove multiscript for now -remove dependencies on mouse in OS, moved to Input -avoid fscache from screwing up (fix might make it slower, but it works) -funcref was missing, it's there now
This commit is contained in:
@@ -73,6 +73,12 @@ void SceneTreeEditor::_cell_button_pressed(Object *p_item,int p_column,int p_id)
|
||||
undo_redo->commit_action();
|
||||
} else if (n->is_type("CanvasItem")) {
|
||||
|
||||
CanvasItem *ci = n->cast_to<CanvasItem>();
|
||||
if (!ci->is_visible() && ci->get_parent_item() && !ci->get_parent_item()->is_visible()) {
|
||||
error->set_text("This item cannot be made visible because the parent is hidden. Unhide the parent first.");
|
||||
error->popup_centered_minsize(Size2(400,80));
|
||||
return;
|
||||
}
|
||||
bool v = !bool(n->call("is_hidden"));
|
||||
undo_redo->create_action("Toggle CanvasItem Visible");
|
||||
undo_redo->add_do_method(n,v?"hide":"show");
|
||||
@@ -663,6 +669,9 @@ SceneTreeEditor::SceneTreeEditor(bool p_label,bool p_can_rename, bool p_can_open
|
||||
tree->connect("button_pressed",this,"_cell_button_pressed");
|
||||
// tree->connect("item_edited", this,"_renamed",Vector<Variant>(),true);
|
||||
|
||||
error = memnew( AcceptDialog );
|
||||
add_child(error);
|
||||
|
||||
last_hash=0;
|
||||
pending_test_update=false;
|
||||
updating_tree=false;
|
||||
|
||||
Reference in New Issue
Block a user