mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #1461 from Azaezel/alpha41/CreateCompositeCleanups
cleanup strays
This commit is contained in:
commit
2a9aa3a9d5
3 changed files with 2 additions and 4 deletions
|
|
@ -81,8 +81,6 @@ bool GFXTexHandle::set(const String &texNameR, const String &texNameG, const Str
|
||||||
// its memory is free for the new allocation.
|
// its memory is free for the new allocation.
|
||||||
free();
|
free();
|
||||||
|
|
||||||
// Create and set the new texture.
|
|
||||||
AssertFatal( texNameR.isNotEmpty(), "Texture name is empty" );
|
|
||||||
StrongObjectRef::set( TEXMGR->createCompositeTexture( texNameR, texNameG, texNameB, texNameA, inputKey, profile ) );
|
StrongObjectRef::set( TEXMGR->createCompositeTexture( texNameR, texNameG, texNameB, texNameA, inputKey, profile ) );
|
||||||
|
|
||||||
#ifdef TORQUE_DEBUG
|
#ifdef TORQUE_DEBUG
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,7 @@ bool ProcessedMaterial::stepInstance()
|
||||||
|
|
||||||
String ProcessedMaterial::_getTexturePath(const String& filename)
|
String ProcessedMaterial::_getTexturePath(const String& filename)
|
||||||
{
|
{
|
||||||
|
if (filename.isEmpty()) return filename;
|
||||||
// if '/', then path is specified, use it.
|
// if '/', then path is specified, use it.
|
||||||
if( filename.find('/') != String::NPos )
|
if( filename.find('/') != String::NPos )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1210,7 +1210,6 @@ function MaterialEditorGui::guiSync( %this, %material )
|
||||||
MaterialEditorPropertiesWindow-->glowMulTextEdit.setText((%material).glowMul[%layer]);
|
MaterialEditorPropertiesWindow-->glowMulTextEdit.setText((%material).glowMul[%layer]);
|
||||||
MaterialEditorPropertiesWindow-->glowMulSlider.setValue((%material).glowMul[%layer]);
|
MaterialEditorPropertiesWindow-->glowMulSlider.setValue((%material).glowMul[%layer]);
|
||||||
MaterialEditorPropertiesWindow-->glowCheckbox.setValue((%material).glow[%layer]);
|
MaterialEditorPropertiesWindow-->glowCheckbox.setValue((%material).glow[%layer]);
|
||||||
MaterialEditorPropertiesWindow-->emissiveCheckbox.setValue((%material).emissive[%layer]);
|
|
||||||
MaterialEditorPropertiesWindow-->receiveShadowsCheckbox.setValue((%material).receiveShadows[%layer]);
|
MaterialEditorPropertiesWindow-->receiveShadowsCheckbox.setValue((%material).receiveShadows[%layer]);
|
||||||
MaterialEditorPropertiesWindow-->ignoreLightingCheckbox.setValue((%material).ignoreLighting[%layer]);
|
MaterialEditorPropertiesWindow-->ignoreLightingCheckbox.setValue((%material).ignoreLighting[%layer]);
|
||||||
MaterialEditorPropertiesWindow-->parallaxTextEdit.setText((%material).parallaxScale[%layer]);
|
MaterialEditorPropertiesWindow-->parallaxTextEdit.setText((%material).parallaxScale[%layer]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue