- Timestamp:
- 05/28/20 18:02:41 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/neuro/neurofactory.cpp
r790 r933 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-20 15Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2020 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 22 22 } 23 23 24 NeuroImpl* NeuroFactory::createNeuroImpl(NeuroClass *nc )24 NeuroImpl* NeuroFactory::createNeuroImpl(NeuroClass *nc, Model::ShapeType shape_type) 25 25 { 26 26 if (!nc) return 0; 27 27 if (!nc->active) return 0; 28 if (!(nc->supported_shape_types & (1 << (int)shape_type))) 29 { 30 logPrintf("NeuroFactory", "createNeuroImpl", LOG_WARN, 31 "Neuro class '%s' does not support shape type '%d'", nc->name.c_str(), (int)shape_type); 32 return NULL; 33 } 28 34 NeuroImpl* ni = getImplementation(nc); 29 35 if (!ni) return 0; … … 99 105 if (removed.len()) 100 106 logPrintf("NeuroFactory", "removeUninmplemented", LOG_INFO, 101 "Removed Neuro classes: %s", removed.c_str());107 "Removed Neuro classes: %s", removed.c_str()); 102 108 }
Note: See TracChangeset
for help on using the changeset viewer.