mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-21 06:30:10 -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() {
|
gulp.task('css', function() {
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
'node_modules/semantic-ui/dist/semantic.css',
|
'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.sass().on('error', plugins.sass.logError))
|
||||||
.pipe(plugins.concat('main.css', {newLine: ' '}))
|
.pipe(plugins.concat('main.css', {newLine: ' '}))
|
||||||
|
@ -133,13 +133,13 @@ class LDrawLoader extends Loader
|
|||||||
|
|
||||||
$part->setName($header['name']);
|
$part->setName($header['name']);
|
||||||
$part
|
$part
|
||||||
->setCategory($this->ldrawService->getCategoryManager()->createCategory($header['category']))
|
->setCategory($this->ldrawService->getCategoryManager()->create($header['category']))
|
||||||
->setType($this->ldrawService->getTypeManager()->create($header['type']));
|
->setType($this->ldrawService->getTypeManager()->create($header['type']));
|
||||||
|
|
||||||
if (isset($header['keywords'])) {
|
if (isset($header['keywords'])) {
|
||||||
foreach ($header['keywords'] as $keyword) {
|
foreach ($header['keywords'] as $keyword) {
|
||||||
$keyword = stripslashes(strtolower(trim($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