gizmos: use scale instead of matrix transform

Improves appearance of gizmos lines and ensures other controls are drawn in
UI dimensions rather than texture dimensions.
This commit is contained in:
itsmattkc
2020-05-06 17:45:44 +10:00
parent 1ceefb6dba
commit 67854a2c97
8 changed files with 32 additions and 25 deletions
+4 -5
View File
@@ -71,14 +71,13 @@ Node *NodeParam::parentNode() const
{
QObject* p = parent();
while (p != nullptr) {
// Determine if this object is a Node or not
while (p) {
Node* cast_test = dynamic_cast<Node*>(p);
if (cast_test != nullptr) {
if (cast_test) {
return cast_test;
} else {
p = p->parent();
}
p = p->parent();
}
return nullptr;