mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Updates ImageAsset usage to utilize AssetRef, and standardizes the setter/getter functions and naming conventions, as well as the ability to use and bind named targets.
This commit is contained in:
parent
a858d8624e
commit
34e3f78a22
82 changed files with 1451 additions and 951 deletions
|
|
@ -608,7 +608,7 @@ function DecalEditorGui::updateDecalPreview( %this, %material )
|
|||
{
|
||||
%matAsset = AssetDatabase.acquireAsset(%material);
|
||||
|
||||
%previewImage = %matAsset.materialDefinitionName.getDiffuseMap(0);
|
||||
%previewImage = %matAsset.materialDefinitionName.getDiffuseMapAsset(0);
|
||||
//AssetDatabase.releaseAsset(%material);
|
||||
}
|
||||
else if(AssetDatabase.getAssetType(%material) $= "ImageAsset")
|
||||
|
|
@ -644,7 +644,7 @@ function DecalEditorGui::updateInstancePreview( %this, %material )
|
|||
{
|
||||
%matAsset = AssetDatabase.acquireAsset(%material);
|
||||
|
||||
%previewImage = %matAsset.materialDefinitionName.getDiffuseMap(0);
|
||||
%previewImage = %matAsset.materialDefinitionName.getDiffuseMapAsset(0);
|
||||
}
|
||||
else if(AssetDatabase.getAssetType(%material) $= "ImageAsset")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue