Base: Move App::Color to Base
Every basic data type is stored in Base module, color is standing out as one that does not. Moving it to Base opens possibilities to integrate it better with the rest of FreeCAD.
This commit is contained in:
@@ -32,9 +32,9 @@
|
||||
|
||||
using namespace App;
|
||||
|
||||
Color MaterialPy::toColor(PyObject* value)
|
||||
Base::Color MaterialPy::toColor(PyObject* value)
|
||||
{
|
||||
Color cCol;
|
||||
Base::Color cCol;
|
||||
if (PyTuple_Check(value) && (PyTuple_Size(value) == 3 || PyTuple_Size(value) == 4)) {
|
||||
PyObject* item {};
|
||||
item = PyTuple_GetItem(value, 0);
|
||||
|
||||
Reference in New Issue
Block a user