Merge pull request #3533 from Biliogadafr/FixColorArrayTscn
Parse ColorArrays correctly (tscn), fixes #3530
This commit is contained in:
commit
d3bd1a731c
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