mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-20 22:20:08 -07:00
Fix LDrawLoader
This commit is contained in:
parent
3bd04a3b94
commit
4c78346c89
@ -4,7 +4,7 @@ var gulp = require('gulp'),
|
||||
gulp.task('css', function() {
|
||||
return gulp.src([
|
||||
'node_modules/semantic-ui/dist/semantic.css',
|
||||
'app/Resources/assets/style/style.sass',
|
||||
'app/Resources/assets/style/style.scss',
|
||||
])
|
||||
.pipe(plugins.sass().on('error', plugins.sass.logError))
|
||||
.pipe(plugins.concat('main.css', {newLine: ' '}))
|
||||
|
@ -133,13 +133,13 @@ class LDrawLoader extends Loader
|
||||
|
||||
$part->setName($header['name']);
|
||||
$part
|
||||
->setCategory($this->ldrawService->getCategoryManager()->createCategory($header['category']))
|
||||
->setCategory($this->ldrawService->getCategoryManager()->create($header['category']))
|
||||
->setType($this->ldrawService->getTypeManager()->create($header['type']));
|
||||
|
||||
if (isset($header['keywords'])) {
|
||||
foreach ($header['keywords'] as $keyword) {
|
||||
$keyword = stripslashes(strtolower(trim($keyword)));
|
||||
$part->addKeyword($this->ldrawService->getKeywordManager()->createKeyword($keyword));
|
||||
$part->addKeyword($this->ldrawService->getKeywordManager()->create($keyword));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user