1
This commit is contained in:
parent
1028d50022
commit
a18e482810
@ -28,7 +28,7 @@ bool AttrHelper::ParseAttr(std::shared_ptr<a8::XObject> xobj,
|
|||||||
std::shared_ptr<a8::XObject> obj = xobj->At(i);
|
std::shared_ptr<a8::XObject> obj = xobj->At(i);
|
||||||
if (obj->IsObject()) {
|
if (obj->IsObject()) {
|
||||||
int attr_id = obj->Get("attr_id", 0);
|
int attr_id = obj->Get("attr_id", 0);
|
||||||
int val = obj->Get("val", 0);
|
float val = obj->Get("val", 0).GetDouble();
|
||||||
{
|
{
|
||||||
float* p = GetAttrAbsPtr(attr_abs, attr_id);
|
float* p = GetAttrAbsPtr(attr_abs, attr_id);
|
||||||
if (p) {
|
if (p) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user