src/widgets/matrixeditor.cpp

changeset 250
2837b549e616
parent 206
654661eab7f3
equal deleted inserted replaced
249:37d3c819cafa 250:2837b549e616
46 glm::mat4 result{1}; 46 glm::mat4 result{1};
47 for (int column = 0; column < countof(this->spinboxes); column += 1) 47 for (int column = 0; column < countof(this->spinboxes); column += 1)
48 { 48 {
49 for (int row = 0; row < countof(this->spinboxes[0]); row += 1) 49 for (int row = 0; row < countof(this->spinboxes[0]); row += 1)
50 { 50 {
51 result[column][row] = this->spinboxes[column][row]->value(); 51 result[column][row] = narrow<float>(this->spinboxes[column][row]->value());
52 } 52 }
53 } 53 }
54 return result; 54 return result;
55 } 55 }
56 56

mercurial