mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-16 16:45:58 +08:00
commit
24e539621d
@ -3229,9 +3229,11 @@ static bool ParseJsonAsValue(Value *ret, const json &o) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
const bool isNotNull = val.Type() != NULL_TYPE;
|
||||||
|
|
||||||
if (ret) *ret = std::move(val);
|
if (ret) *ret = std::move(val);
|
||||||
|
|
||||||
return val.Type() != NULL_TYPE;
|
return isNotNull;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ParseExtrasProperty(Value *ret, const json &o) {
|
static bool ParseExtrasProperty(Value *ret, const json &o) {
|
||||||
@ -3671,7 +3673,8 @@ static bool ParseParameterProperty(Parameter *param, std::string *err,
|
|||||||
// Found a number array.
|
// Found a number array.
|
||||||
return true;
|
return true;
|
||||||
} else if (ParseNumberProperty(¶m->number_value, err, o, prop, false)) {
|
} else if (ParseNumberProperty(¶m->number_value, err, o, prop, false)) {
|
||||||
return param->has_number_value = true;
|
param->has_number_value = true;
|
||||||
|
return true;
|
||||||
} else if (ParseJSONProperty(¶m->json_double_value, err, o, prop,
|
} else if (ParseJSONProperty(¶m->json_double_value, err, o, prop,
|
||||||
false)) {
|
false)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user