diff options
Diffstat (limited to 'linden/indra/newview/lltoolplacer.cpp')
-rw-r--r-- | linden/indra/newview/lltoolplacer.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/linden/indra/newview/lltoolplacer.cpp b/linden/indra/newview/lltoolplacer.cpp index d52d97c..dc4d6bf 100644 --- a/linden/indra/newview/lltoolplacer.cpp +++ b/linden/indra/newview/lltoolplacer.cpp | |||
@@ -216,8 +216,22 @@ BOOL LLToolPlacer::addObject( LLPCode pcode, S32 x, S32 y, U8 use_physics ) | |||
216 | 216 | ||
217 | // Set params for new object based on its PCode. | 217 | // Set params for new object based on its PCode. |
218 | LLQuaternion rotation; | 218 | LLQuaternion rotation; |
219 | LLVector3 scale = DEFAULT_OBJECT_SCALE; | 219 | LLVector3 scale = LLVector3( |
220 | gSavedSettings.getF32("BuildPrefs_Xsize"), | ||
221 | gSavedSettings.getF32("BuildPrefs_Ysize"), | ||
222 | gSavedSettings.getF32("BuildPrefs_Zsize")); | ||
223 | |||
220 | U8 material = LL_MCODE_WOOD; | 224 | U8 material = LL_MCODE_WOOD; |
225 | if(gSavedSettings.getString("BuildPrefs_Material")== "Stone") material = LL_MCODE_STONE; | ||
226 | if(gSavedSettings.getString("BuildPrefs_Material")== "Metal") material = LL_MCODE_METAL; | ||
227 | if(gSavedSettings.getString("BuildPrefs_Material")== "Wood") material = LL_MCODE_WOOD; | ||
228 | if(gSavedSettings.getString("BuildPrefs_Material")== "Flesh") material = LL_MCODE_FLESH; | ||
229 | if(gSavedSettings.getString("BuildPrefs_Material")== "Rubber") material = LL_MCODE_RUBBER; | ||
230 | if(gSavedSettings.getString("BuildPrefs_Material")== "Plastic") material = LL_MCODE_PLASTIC; | ||
231 | |||
232 | |||
233 | |||
234 | |||
221 | BOOL create_selected = FALSE; | 235 | BOOL create_selected = FALSE; |
222 | LLVolumeParams volume_params; | 236 | LLVolumeParams volume_params; |
223 | 237 | ||
@@ -284,7 +298,7 @@ BOOL LLToolPlacer::addObject( LLPCode pcode, S32 x, S32 y, U8 use_physics ) | |||
284 | gMessageSystem->addU8Fast(_PREHASH_Material, material); | 298 | gMessageSystem->addU8Fast(_PREHASH_Material, material); |
285 | 299 | ||
286 | U32 flags = 0; // not selected | 300 | U32 flags = 0; // not selected |
287 | if (use_physics) | 301 | if (use_physics || gSavedSettings.getBOOL("BuildPrefs_Physical")) |
288 | { | 302 | { |
289 | flags |= FLAGS_USE_PHYSICS; | 303 | flags |= FLAGS_USE_PHYSICS; |
290 | } | 304 | } |