Parse ColorArrays correctly (tscn)., fixes #3530
This commit is contained in:
parent
0364d6b076
commit
31fe57778d
1 changed files with 1 additions and 1 deletions
|
@ -1282,7 +1282,7 @@ Error VariantParser::parse_value(Token& token,Variant &value,Stream *p_stream,in
|
||||||
arr.resize(len);
|
arr.resize(len);
|
||||||
DVector<Color>::Write w = arr.write();
|
DVector<Color>::Write w = arr.write();
|
||||||
for(int i=0;i<len;i++) {
|
for(int i=0;i<len;i++) {
|
||||||
w[i]=Color(args[i*3+0],args[i*3+1],args[i*3+2],args[i*3+3]);
|
w[i]=Color(args[i*4+0],args[i*4+1],args[i*4+2],args[i*4+3]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue