mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-06 18:06:28 +00:00
Review latest PRs formatting
This commit is contained in:
@@ -458,9 +458,12 @@ int GetCurrentMonitor(void)
|
|||||||
|
|
||||||
jobject display = (*env)->CallObjectMethod(env, activity, getDisplayMethod);
|
jobject display = (*env)->CallObjectMethod(env, activity, getDisplayMethod);
|
||||||
|
|
||||||
if (display == NULL) {
|
if (display == NULL)
|
||||||
|
{
|
||||||
TRACELOG(LOG_ERROR, "GetCurrentMonitor() couldn't get the display object");
|
TRACELOG(LOG_ERROR, "GetCurrentMonitor() couldn't get the display object");
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
jclass displayClass = (*env)->FindClass(env, "android/view/Display");
|
jclass displayClass = (*env)->FindClass(env, "android/view/Display");
|
||||||
jmethodID getDisplayIdMethod = (*env)->GetMethodID(env, displayClass, "getDisplayId", "()I");
|
jmethodID getDisplayIdMethod = (*env)->GetMethodID(env, displayClass, "getDisplayId", "()I");
|
||||||
displayId = (int)(*env)->CallIntMethod(env, display, getDisplayIdMethod);
|
displayId = (int)(*env)->CallIntMethod(env, display, getDisplayIdMethod);
|
||||||
|
@@ -6239,9 +6239,8 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, int *animCo
|
|||||||
*animCount = (int)data->animations_count;
|
*animCount = (int)data->animations_count;
|
||||||
animations = (ModelAnimation *)RL_CALLOC(data->animations_count, sizeof(ModelAnimation));
|
animations = (ModelAnimation *)RL_CALLOC(data->animations_count, sizeof(ModelAnimation));
|
||||||
|
|
||||||
Transform worldTransform;
|
Transform worldTransform = { 0 };
|
||||||
{
|
cgltf_float cgltf_worldTransform[16] = { 0 };
|
||||||
cgltf_float cgltf_worldTransform[16];
|
|
||||||
cgltf_node *node = skin.joints[0];
|
cgltf_node *node = skin.joints[0];
|
||||||
cgltf_node_transform_world(node->parent, cgltf_worldTransform);
|
cgltf_node_transform_world(node->parent, cgltf_worldTransform);
|
||||||
Matrix worldMatrix = {
|
Matrix worldMatrix = {
|
||||||
@@ -6250,8 +6249,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, int *animCo
|
|||||||
cgltf_worldTransform[2], cgltf_worldTransform[6], cgltf_worldTransform[10], cgltf_worldTransform[14],
|
cgltf_worldTransform[2], cgltf_worldTransform[6], cgltf_worldTransform[10], cgltf_worldTransform[14],
|
||||||
cgltf_worldTransform[3], cgltf_worldTransform[7], cgltf_worldTransform[11], cgltf_worldTransform[15]
|
cgltf_worldTransform[3], cgltf_worldTransform[7], cgltf_worldTransform[11], cgltf_worldTransform[15]
|
||||||
};
|
};
|
||||||
MatrixDecompose(worldMatrix, &(worldTransform.translation), &(worldTransform.rotation), &(worldTransform.scale));
|
MatrixDecompose(worldMatrix, &worldTransform.translation, &worldTransform.rotation, &worldTransform.scale);
|
||||||
}
|
|
||||||
|
|
||||||
for (unsigned int i = 0; i < data->animations_count; i++)
|
for (unsigned int i = 0; i < data->animations_count; i++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user