소스 검색

Remove out-of-logic assignment of instance's original scene

Pedro J. Estébanez 7 년 전
부모
커밋
7286966971
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      scene/main/node.cpp

+ 0 - 4
scene/main/node.cpp

@@ -2099,10 +2099,6 @@ Node *Node::_duplicate(int p_flags) const {
 		ERR_FAIL_COND_V(!node, NULL);
 	}
 
-	if (get_filename() != "") { //an instance
-		node->set_filename(get_filename());
-	}
-
 	List<PropertyInfo> plist;
 
 	get_property_list(&plist);