mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-16 07:01:03 +00:00
fix cc.Quat
This commit is contained in:
parent
b3da760863
commit
2affb38e50
@ -307,6 +307,16 @@ export class Inspector extends InjectEvent {
|
||||
} else {
|
||||
data.data = null;
|
||||
}
|
||||
const desc = [];
|
||||
if (value["_rect"]) {
|
||||
const rect = value["_rect"];
|
||||
desc.push(`frame[${rect.width}*${rect.height}]`);
|
||||
}
|
||||
if (value["_texture"]) {
|
||||
const texture = value["_texture"];
|
||||
desc.push(`texture[${texture.width}*${texture.height}]`);
|
||||
}
|
||||
data.desc = desc.join(",");
|
||||
return data;
|
||||
}
|
||||
return null;
|
||||
@ -379,6 +389,17 @@ export class Inspector extends InjectEvent {
|
||||
if (info) {
|
||||
return make(info);
|
||||
}
|
||||
info = this._buildVecData({
|
||||
// @ts-ignore
|
||||
ctor: cc.Quat,
|
||||
path: path,
|
||||
data: new Vec4Data(),
|
||||
keys: ["x", "y", "z", "w"],
|
||||
value: propertyValue,
|
||||
});
|
||||
if (info) {
|
||||
return make(info);
|
||||
}
|
||||
info = this._buildVecData({
|
||||
// @ts-ignore
|
||||
ctor: cc.Vec2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user