less warning maybe ?

This commit is contained in:
samcake 2018-04-25 15:53:50 -07:00
parent 5db3eee4ad
commit 17f8e789fc
3 changed files with 8 additions and 7 deletions

View file

@ -72,5 +72,5 @@ void RegionState::run(const workload::WorkloadContextPointer& renderContext, con
}
auto config = std::static_pointer_cast<Config>(renderContext->jobConfig);
config->setNum(0, _state[0].size(), _state[1].size(), _state[2].size());
config->setNum(0, (uint32_t) _state[0].size(), (uint32_t) _state[1].size(), (uint32_t) _state[2].size());
}

View file

@ -56,8 +56,8 @@ function getTileColor(a, b, c) {
function addObject(a, b, c, lifetime) {
var center = getStagePosOriAt(a, b, c).pos;
var offset = (Math.abs(a) + (Math.abs(b) % 2)) % 2;
var makePrim = (offset > 0 ? true : false) ;
if (makePrim) {
var makePrim = (offset == 0 ? true : false) ;
if (makePrim == true) {
return (Entities.addEntity({
type: "Shape",
shape: "Sphere",

View file

@ -179,7 +179,7 @@ Rectangle {
}
}
}
RowLayout {
/*RowLayout {
visible: Workload.getConfig("controlViews")["regulateViewRanges"]
anchors.left: parent.left
anchors.right: parent.right
@ -237,7 +237,7 @@ Rectangle {
}
}
}
}
}*/
property var controlViews: Workload.getConfig("controlViews")
PlotPerf {
@ -294,6 +294,7 @@ Rectangle {
text: "Test"
}
Row {
spacing: 5
anchors.left: parent.left
anchors.right: parent.right
HifiControls.Button {
@ -310,13 +311,13 @@ Rectangle {
_workload.broadcastClearScene()
}
}
HifiControls.Button {
/*HifiControls.Button {
text: "bump floor"
onClicked: {
print("pressed")
_workload.broadcastBumpUpFloor()
}
}
}*/
}
HifiControls.Label {
id: gridSizeLabel