16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

improvements

This commit is contained in:
milek7
2019-02-23 23:41:25 +01:00
parent 37dc56a8d8
commit 41548af003
7 changed files with 94 additions and 59 deletions

View File

@@ -40,6 +40,7 @@ basic_editor::translate( scene::basic_node *Node, glm::dvec3 const &Location, bo
// NOTE: bit of a waste for single nodes, for the sake of less varied code down the road
auto const translation { targetlocation - initiallocation };
Node->mark_dirty();
if( Node->group() == null_handle ) {
translate_node( Node, Node->location() + translation );
}