forked from qt-creator/qt-creator
QmlDesigner: Add effect maker runtime nodes binding mechanism
Still some issues related to UI components because it's never tested Also quick fix for generated paths on windows (not tested) Task-number: QDS-10987 Change-Id: Ifed4b0f687e8da78206985e031692aa6c9faf947 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "effectutils.h"
|
||||
#include "effectmakeruniformsmodel.h"
|
||||
#include "propertyhandler.h"
|
||||
#include "uniform.h"
|
||||
|
||||
#include <QFile>
|
||||
@@ -100,8 +101,11 @@ void CompositionNode::parse(const QString &qenPath)
|
||||
|
||||
// parse properties
|
||||
QJsonArray jsonProps = json.value("properties").toArray();
|
||||
for (const auto /*QJsonValueRef*/ &prop : jsonProps)
|
||||
m_unifomrsModel.addUniform(new Uniform(prop.toObject()));
|
||||
for (const auto /*QJsonValueRef*/ &prop : jsonProps) {
|
||||
const auto uniform = new Uniform(prop.toObject());
|
||||
m_unifomrsModel.addUniform(uniform);
|
||||
g_propertyData.insert(uniform->name(), uniform->value());
|
||||
}
|
||||
|
||||
// Seek through code to get tags
|
||||
QStringList shaderCodeLines;
|
||||
|
||||
Reference in New Issue
Block a user