Skip to content

Commit

Permalink
Merge pull request #40 from Live2D/develop
Browse files Browse the repository at this point in the history
Cubism 4 SDK for Native R5 beta3
  • Loading branch information
itoh-at-live2d-com committed Jun 16, 2022
2 parents 500fd01 + 68e00b7 commit d3a5810
Show file tree
Hide file tree
Showing 16 changed files with 355 additions and 94 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [4-r.5-beta.3] - 2022-06-16

### Fixed

* `GetDrawableTextureIndices` function in `CubismModel` has been renamed to `GetDrawableTextureIndex` because the name was not correct.
* `GetDrawableTextureIndices` function is marked as deprecated.
* Fix physics system behaviour when exists Physics Fps Setting in .physics3.json.
* Fix force close problem when invalid `physics3.json` is read.
* Fixed memory leak in Cocos2d-x.


## [4-r.5-beta.2] - 2022-06-02

Expand Down Expand Up @@ -163,6 +173,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Fix invalid expressions of `CubismCdiJson`.


[4-r.5-beta.3]: https://github.com/Live2D/CubismNativeFramework/compare/4-r.5-beta.2...4-r.5-beta.3
[4-r.5-beta.2]: https://github.com/Live2D/CubismNativeFramework/compare/4-r.5-beta.1...4-r.5-beta.2
[4-r.5-beta.1]: https://github.com/Live2D/CubismNativeFramework/compare/4-r.4...4-r.5-beta.1
[4-r.4]: https://github.com/Live2D/CubismNativeFramework/compare/4-r.4-beta.1...4-r.4
Expand Down
5 changes: 5 additions & 0 deletions src/Model/CubismModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ csmInt32 CubismModel::GetDrawableCount() const
}

csmInt32 CubismModel::GetDrawableTextureIndices(csmInt32 drawableIndex) const
{
return GetDrawableTextureIndex(drawableIndex);
}

csmInt32 CubismModel::GetDrawableTextureIndex(csmInt32 drawableIndex) const
{
const csmInt32* textureIndices = Core::csmGetDrawableTextureIndices(_model);
return textureIndices[drawableIndex];
Expand Down
13 changes: 13 additions & 0 deletions src/Model/CubismModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ class CubismModel
const csmInt32* GetDrawableRenderOrders() const;

/**
* @deprecated
* 関数名が誤っていたため、代替となる getDrawableTextureIndex を追加し、この関数は非推奨となりました。
*
* @brief Drawableのテクスチャインデックスリストの取得
*
* Drawableのテクスチャインデックスリストを取得する。
Expand All @@ -350,6 +353,16 @@ class CubismModel
*/
csmInt32 GetDrawableTextureIndices(csmInt32 drawableIndex) const;

/**
* @brief Drawableのテクスチャインデックスリストの取得
*
* Drawableのテクスチャインデックスを取得する。
*
* @param[in] drawableIndex Drawableのインデックス
* @return Drawableのテクスチャインデックス
*/
csmInt32 GetDrawableTextureIndex(csmInt32 drawableIndex) const;

/**
* @brief Drawableの頂点インデックスの個数の取得
*
Expand Down
Loading

0 comments on commit d3a5810

Please sign in to comment.