Fix compiler warnings
This commit is contained in:
@@ -257,7 +257,9 @@ void AppearancePreview::setTexture(const QImage& image)
|
||||
}
|
||||
|
||||
void AppearancePreview::setTextureScaling(double scale)
|
||||
{}
|
||||
{
|
||||
Q_UNUSED(scale)
|
||||
}
|
||||
|
||||
void AppearancePreview::resetAmbientColor()
|
||||
{
|
||||
|
||||
@@ -898,7 +898,7 @@ bool MaterialsEditor::updateTexturePreview() const
|
||||
{
|
||||
bool hasImage = false;
|
||||
QImage image;
|
||||
double scaling = 99.0;
|
||||
//double scaling = 99.0;
|
||||
if (_material->hasModel(Materials::ModelUUIDs::ModelUUID_Rendering_Texture)) {
|
||||
// First try loading an embedded image
|
||||
try {
|
||||
@@ -939,7 +939,7 @@ bool MaterialsEditor::updateTexturePreview() const
|
||||
try {
|
||||
auto property = _material->getAppearanceProperty(QLatin1String("TextureScaling"));
|
||||
if (!property->isNull()) {
|
||||
scaling = property->getFloat();
|
||||
//scaling = property->getFloat();
|
||||
// Base::Console().Log("Has 'TextureScaling' = %g\n", scaling);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user