瀏覽代碼

Update ImageAsset_ScriptBinding.h

Fixed a long-standing bug with ImageAsset.removeExplicitCell(). Odds are that nobody has ever needed to use this function. It has been fixed.
Peter Robinson 3 年之前
父節點
當前提交
9a22a7e546
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      engine/source/2d/assets/ImageAsset_ScriptBinding.h

+ 1 - 1
engine/source/2d/assets/ImageAsset_ScriptBinding.h

@@ -433,7 +433,7 @@ ConsoleMethodWithDocs(ImageAsset, insertExplicitCell, ConsoleBool, 8, 8, (int ce
     @param cellIndex The zero-based index to remove the cell from.
     @param cellIndex The zero-based index to remove the cell from.
     @return Whether the operation was successful or not.
     @return Whether the operation was successful or not.
 */
 */
-ConsoleMethodWithDocs(ImageAsset, removeExplicitCell, ConsoleBool, 7, 7, (int cellIndex))
+ConsoleMethodWithDocs(ImageAsset, removeExplicitCell, ConsoleBool, 3, 3, (int cellIndex))
 {
 {
     // Fetch cell index.
     // Fetch cell index.
     const S32 cellIndex = dAtoi( argv[2] );
     const S32 cellIndex = dAtoi( argv[2] );