Compare commits
4 Commits
2368de6e93
...
a61c8477c7
| Author | SHA1 | Date | |
|---|---|---|---|
| a61c8477c7 | |||
| 788ad8f2c0 | |||
| 78afc179c4 | |||
| 69ec4c9837 |
@@ -135,7 +135,7 @@ JavaScriptWrapImports: true
|
|||||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||||
LambdaBodyIndentation: Signature
|
LambdaBodyIndentation: Signature
|
||||||
MacroBlockBegin: "PRIVATE_DEFINITION_START|STATIC_INITIALIZER_BEGIN"
|
MacroBlockBegin: "PRIVATE_DEFINITION_START|STATIC_INITIALIZER_BEGIN"
|
||||||
MacroBlockEnd: "PRIVATE_DEFINITION_END|PRIVATE_DEFINITION_FINISH|STATIC_INITIALIZER_END"
|
MacroBlockEnd: "PRIVATE_DEFINITION_END|PRIVATE_DEFINITION_END_NO_INITIALIZE|STATIC_INITIALIZER_END"
|
||||||
MaxEmptyLinesToKeep: 2
|
MaxEmptyLinesToKeep: 2
|
||||||
NamespaceIndentation: None
|
NamespaceIndentation: None
|
||||||
ObjCBinPackProtocolList: Auto
|
ObjCBinPackProtocolList: Auto
|
||||||
|
|||||||
@@ -365,8 +365,8 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
if (other.size() == 2) {
|
if (other.size() == 2) {
|
||||||
insert(other.pim_index[0].key, other.pim_content[0]);
|
insert(other.pim_index[0].key, other.pim_content[other.pim_index[0].index]);
|
||||||
insert(other.pim_index[1].key, other.pim_content[1]);
|
insert(other.pim_index[1].key, other.pim_content[other.pim_index[1].index]);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
for (int i = 0; i < other.pim_index.size_s(); ++i) {
|
for (int i = 0; i < other.pim_index.size_s(); ++i) {
|
||||||
|
|||||||
@@ -712,6 +712,11 @@ int PIVariant::toInt() const {
|
|||||||
ba >> r;
|
ba >> r;
|
||||||
return (int)r.rgba;
|
return (int)r.rgba;
|
||||||
}
|
}
|
||||||
|
case PIVariant::pivMathVector: {
|
||||||
|
PIMathVectord r;
|
||||||
|
ba >> r;
|
||||||
|
return r.size() > 0 ? r[0] : 0;
|
||||||
|
}
|
||||||
case PIVariant::pivCustom: return getAsValue<int>(*this);
|
case PIVariant::pivCustom: return getAsValue<int>(*this);
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
@@ -817,6 +822,11 @@ llong PIVariant::toLLong() const {
|
|||||||
ba >> r;
|
ba >> r;
|
||||||
return llong(r.selectedValue());
|
return llong(r.selectedValue());
|
||||||
}
|
}
|
||||||
|
case PIVariant::pivMathVector: {
|
||||||
|
PIMathVectord r;
|
||||||
|
ba >> r;
|
||||||
|
return r.size() > 0 ? r[0] : 0L;
|
||||||
|
}
|
||||||
case PIVariant::pivCustom: return getAsValue<llong>(*this);
|
case PIVariant::pivCustom: return getAsValue<llong>(*this);
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
@@ -922,6 +932,11 @@ float PIVariant::toFloat() const {
|
|||||||
ba >> r;
|
ba >> r;
|
||||||
return float(r.selectedValue());
|
return float(r.selectedValue());
|
||||||
}
|
}
|
||||||
|
case PIVariant::pivMathVector: {
|
||||||
|
PIMathVectord r;
|
||||||
|
ba >> r;
|
||||||
|
return r.size() > 0 ? r[0] : 0.f;
|
||||||
|
}
|
||||||
case PIVariant::pivCustom: return getAsValue<float>(*this);
|
case PIVariant::pivCustom: return getAsValue<float>(*this);
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
@@ -1027,6 +1042,11 @@ double PIVariant::toDouble() const {
|
|||||||
ba >> r;
|
ba >> r;
|
||||||
return double(r.selectedValue());
|
return double(r.selectedValue());
|
||||||
}
|
}
|
||||||
|
case PIVariant::pivMathVector: {
|
||||||
|
PIMathVectord r;
|
||||||
|
ba >> r;
|
||||||
|
return r.size() > 0 ? r[0] : 0.;
|
||||||
|
}
|
||||||
case PIVariant::pivCustom: return getAsValue<double>(*this);
|
case PIVariant::pivCustom: return getAsValue<double>(*this);
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
@@ -1132,6 +1152,11 @@ ldouble PIVariant::toLDouble() const {
|
|||||||
ba >> r;
|
ba >> r;
|
||||||
return ldouble(r.selectedValue());
|
return ldouble(r.selectedValue());
|
||||||
}
|
}
|
||||||
|
case PIVariant::pivMathVector: {
|
||||||
|
PIMathVectord r;
|
||||||
|
ba >> r;
|
||||||
|
return r.size() > 0 ? r[0] : 0.;
|
||||||
|
}
|
||||||
case PIVariant::pivCustom: return getAsValue<float>(*this);
|
case PIVariant::pivCustom: return getAsValue<float>(*this);
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user