Multiple, simultaneous node editing spuport!!

..but will you be brave enough to try it? :)
This commit is contained in:
Juan Linietsky 2015-08-25 00:08:45 -03:00
parent 0d77277a86
commit eff2931b2a
9 changed files with 199 additions and 10 deletions

View file

@ -39,7 +39,7 @@ void EditorHistory::_cleanup_history() {
bool fail=false;
for(int j=0;j<history[i].path.size();j++) {
if (!history[i].path[j].res.is_null())
if (!history[i].path[j].ref.is_null())
continue;
if (ObjectDB::get_instance(history[i].path[j].object))
@ -70,10 +70,10 @@ void EditorHistory::_add_object(ObjectID p_object,const String& p_property,int p
Object *obj = ObjectDB::get_instance(p_object);
ERR_FAIL_COND(!obj);
Resource *r = obj->cast_to<Resource>();
Reference *r = obj->cast_to<Reference>();
Obj o;
if (r)
o.res=RES(r);
o.ref=REF(r);
o.object=p_object;
o.property=p_property;