mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #1116 from Azaezel/alpha41/previewPoke
generateCachedPreviewImage needs loadShape()
This commit is contained in:
commit
845defb25d
1 changed files with 1 additions and 0 deletions
|
|
@ -706,6 +706,7 @@ DefineEngineMethod(ShapeAsset, generateCachedPreviewImage, const char*, (S32 res
|
||||||
"@param resolution Optional field for what resolution to bake the preview image at. Must be pow2\n"
|
"@param resolution Optional field for what resolution to bake the preview image at. Must be pow2\n"
|
||||||
"@param overrideMaterialName Optional field for overriding the material used when rendering the shape for the bake.")
|
"@param overrideMaterialName Optional field for overriding the material used when rendering the shape for the bake.")
|
||||||
{
|
{
|
||||||
|
object->loadShape();
|
||||||
return object->generateCachedPreviewImage(resolution, overrideMaterialName);
|
return object->generateCachedPreviewImage(resolution, overrideMaterialName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue