* replace reGroup command with simpler to use Move Primitives to Entity one (select primitives to move, select target entity primitive, go)

fix crashes in Entity_ungroupSelected, Entity_connectSelected
rename entity commands uniformly for simpler search in the list
This commit is contained in:
Garux
2018-05-24 18:21:38 +03:00
parent 6f8a0668a3
commit 17a7e2f413
4 changed files with 47 additions and 42 deletions

View File

@@ -151,7 +151,7 @@ typedef MemberCaller1<ConnectEntities, const char*, &ConnectEntities::connect> C
inline Entity* ScenePath_getEntity( const scene::Path& path ){
Entity* entity = Node_getEntity( path.top() );
if ( entity == 0 ) {
if ( entity == 0 && path.size() > 1 ) {
entity = Node_getEntity( path.parent() );
}
return entity;