1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-19 05:30:08 -07:00

Add color rgb hex to set zip

This commit is contained in:
Unknown 2017-06-19 13:20:17 +02:00
parent 66e886c004
commit ba979c50c7

View File

@ -128,7 +128,7 @@ class ZipService
$model = $modelArray['model']; $model = $modelArray['model'];
$quantity = $modelArray['quantity']; $quantity = $modelArray['quantity'];
$filename = "{$this->zipName}/{$color->getName()}/{$model->getId()}_({$quantity}x).stl"; $filename = "{$this->zipName}/{$color->getName()}_(#{$color->getRgb()})/{$model->getId()}_({$quantity}x).stl";
$this->addModel($filename, $model); $this->addModel($filename, $model);
} }
@ -166,7 +166,7 @@ class ZipService
*/ */
private function addLicense() private function addLicense()
{ {
$text = sprintf('All stl files in this archive were converted by LDView from LDraw Library http://www.ldraw.org/'."\n\n"); $text = sprintf('All stl files in this archive were converted by LDView from official LDraw Library http://www.ldraw.org/'."\n\n");
$text .= sprintf('Files are licensed under the Creative Commons - Attribution license.'."\n"); $text .= sprintf('Files are licensed under the Creative Commons - Attribution license.'."\n");
$text .= sprintf('http://creativecommons.org/licenses/by/2.0/'."\n\n"); $text .= sprintf('http://creativecommons.org/licenses/by/2.0/'."\n\n");