forked from qt-creator/qt-creator
QmlDesigner: Fix textures not render in effect maker
Task-number: QDS-11064 Change-Id: If300e61e389f66928787bf02273c9356a1a76185 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -18,6 +18,7 @@ Row {
|
||||
|
||||
actionIndicatorVisible: false
|
||||
|
||||
onAbsoluteFilePathChanged: uniformValue = absoluteFilePath
|
||||
//TODO: Disable until we figure out how to use images from outside qds
|
||||
//onAbsoluteFilePathChanged: uniformValue = absoluteFilePath
|
||||
}
|
||||
}
|
||||
|
@@ -462,9 +462,11 @@ QString EffectMakerModel::valueAsVariable(const Uniform &uniform)
|
||||
// Return name for the image property Image element
|
||||
QString EffectMakerModel::getImageElementName(const Uniform &uniform)
|
||||
{
|
||||
// TODO
|
||||
Q_UNUSED(uniform)
|
||||
return {};
|
||||
if (uniform.value().toString().isEmpty())
|
||||
return QStringLiteral("null");
|
||||
QString simplifiedName = uniform.name().simplified();
|
||||
simplifiedName = simplifiedName.remove(' ');
|
||||
return QStringLiteral("imageItem") + simplifiedName;
|
||||
}
|
||||
|
||||
const QString EffectMakerModel::getConstVariables()
|
||||
|
Reference in New Issue
Block a user