Commit Graph

54 Commits

Author SHA1 Message Date
Campbell Barton
590682bac1 uv mirror poll function wasnt checking UV's were available on the mesh. 2011-07-01 13:25:00 +00:00
Campbell Barton
66b565a376 improve error report [#27775] External Image Editor Preference does not work
also correct tooltip typo.
2011-06-30 04:32:59 +00:00
Campbell Barton
b4682414c2 fix [#27787] Smart UV Unwrap Results in Overlaps
added optional face area weighting (from 2.4x) since this can result in overlapping faces.
2011-06-28 06:51:55 +00:00
Campbell Barton
a1abdf1c1c fix [#27778] Set Bone Flags - No Scale - Toggle seems not to work.
Toggling options on the selection is better done as a generic operator.
Replace ARMATURE_OT_flags_set and POSE_OT_flags_set with WM_OT_context_collection_boolean_set and use menus to access it with specific settings.

This way its easy make a key shortcut which toggles any boolean on any collection - sequences, metaballs, objects, bones etc.
2011-06-27 07:51:52 +00:00
Campbell Barton
fd60b73b7b fix [#27742] Smart UV project no longer works in 2.58
failed with active, unselected objects.
2011-06-24 04:12:01 +00:00
Campbell Barton
3cf2e6b7dc fix [#27747] Modal operator in Special Menu (W) ignores continues grab 2011-06-24 03:59:41 +00:00
Campbell Barton
eaae38551f pep8 compliance 2011-06-21 17:17:51 +00:00
Campbell Barton
6a039f1a5c fix [#27707] Script error for UVs->Copy Mirrored UV coords 2011-06-21 02:16:22 +00:00
Campbell Barton
3ede710a3c fix for baking actions for objects with no animation data. 2011-06-16 07:48:22 +00:00
Campbell Barton
b09bb948ee fix [#27658] Bake action operator error on non armature objects
add support for baking object transformations too, also add option to clear constraints (off by default).
2011-06-15 06:25:05 +00:00
Campbell Barton
62ba2d4c68 Changes to quick explode
- fix python error when the object had an empty material slot
- initialize start frame from the current frame
- set frame range to 300000 max (which is blenders own maximum)
- mesh order was arbitrary, instead use selected -> active, removed invert option.

also fix for missing include in bpy_extras.view3d_utils
2011-06-15 00:16:30 +00:00
Janne Karhu
e8a1d03570 Quick Explode operator:
* Sets up a particle system and an explode modifier.
* In "blend" mode requires two selected objects and creates "crossed keyed" particle systems between the objects for a simple blend effect where the first object explodes and then recombines as the second object.
* Also renamed the other quick effect operators as "Quick ..." to bring some consistency to the operators (also nice that now you can just write "quick" to the operator search and get all these operators).
2011-06-12 11:14:28 +00:00
Campbell Barton
9c8cc9fe60 rna option not to save certain properties for redoing later, currently only used by operator presets. 2011-06-07 10:54:57 +00:00
Campbell Barton
fc6dcdf17f bug [#27582] Screen Editing > Split and Join area don't work.
added 'INTERNAL' operator flag so operators which are only meant to be called by other operators or internal use are not displayed to the user.

Currently only use this flag for the operator search toolbox, is ignored in debug mode.
2011-06-06 11:56:54 +00:00
Brecht Van Lommel
d369a6aaaf Windows installer and Path changes, fixing various issues:
* Windows installer not working for non-admin users and multiple users
* Addon scripts not installing next to user configuration
* Portable install not being taken into account in all places

The main problem was the windows installer was installing system scripts in
AppData next to the user configuration directory, which is not shared between
users. Now these are installed in ProgramFiles, and only addon scripts added
by the users go to AppData.

On all platforms, addon scripts were sometimes getting installed between
system scripts, because the scripts folder in the executable directory was
given precedence over the user configuration folder, that is no longer done
now. So addons now behave like user configuration, they are preserved even
if you download a newer build of the same blender version.

If you have an installation of 2.57 on windows, the addon install location
will not change until we do the version bump to 2.58, to avoid conflicts with
the existing the installed 2.57 version.

The old behavior of giving precedence to the local folder was done to support
portable install, where all configuration is written to the local folder. This
is now implemented differently: if and only if a "config" folder exists in the
local folder, portable install will be assumed, and files will only be written
to that local folder.
2011-05-27 09:57:53 +00:00
Campbell Barton
26252bb315 correct spelling error and some pep8 changes. 2011-05-26 09:33:51 +00:00
Campbell Barton
6466673a62 move less common mesh operations out of bpy_types into bpy_extras.mesh_utils 2011-05-26 07:16:56 +00:00
Campbell Barton
68dbfe6ac9 move generic bpy helper modules into bpy_extras. 2011-05-16 07:51:02 +00:00
Campbell Barton
d8eafe14c6 fix [#27148] *Invalid Path* in all "operator presets" dropdowns 2011-05-02 17:29:30 +00:00
Sergey Sharybin
05538a7c54 Fix #27239: "A" menu in Sculptmode fails
Simple incorrect property accessing fix (enum_items vs. items).

Additional change: removed hotkey to toggle airbrush in sculpt mode
TODO: incorrect hotkeys are shown in stroke method menu, but it's how
      hotkey string detecting works now.
2011-05-01 07:39:21 +00:00
Campbell Barton
2cdb79239b fix [#27199] Copy Mirrored UV Coords missing the reverse option 2011-04-29 05:32:27 +00:00
Campbell Barton
2cd78c385d fix [#27196] Traceback caused by preset selection 2011-04-28 09:52:16 +00:00
Thomas Dinges
d6e03d2c56 2.5 Interface:
* Implemented a new operator "WM_OT_properties_context_change" to switch to a different tab inside the properties window.
* This is used now inside the Modifier tab for Simulation Modifiers. Based on a mockup by Janne Karhu:
http://www.pasteall.org/pic/11261
http://www.pasteall.org/pic/11262

Rather than having a delete button there anymore, the button changes the context to Physics/Particles, where you can edit the settings and delete the actual simulation.
2011-04-25 13:47:15 +00:00
Campbell Barton
bd80f19c22 fix [#27140] Negative Subdiv level in the operator panel.
when relative option is disabled, don't allow setting the subdiv value to a negative number.
2011-04-25 06:44:43 +00:00
Campbell Barton
c7536d558b patch [#27094] Fix for property names in sunsky presets
from Ejner Fergo (ejnersan)
2011-04-21 12:14:10 +00:00
Janne Karhu
290a641c32 Bug fix: "make fur" gave errors with multiple selected objects.
* Also some code changes for "make smoke" and "make fluid" to suppress some python messages that were printed to the console.
2011-04-20 17:51:56 +00:00
Campbell Barton
8a7dce5301 update tooltip since this fixes paths from newer versions. 2011-04-20 14:47:00 +00:00
Thomas Dinges
656dd38f0d Fixed a copy and paste error in "Copy Previous Settings" operator. ;-) 2011-04-12 21:00:53 +00:00
Campbell Barton
8fd1d53a31 change behavior of restoring old settings
- only attempt to restore old 'user' settings (not local), since bundled blender's always use their own settings.
- only automatically run 'bpy.ops.wm.read_homefile()' after copying files if the user hasnt alreadt started making changes in the blend file.
2011-04-12 04:23:38 +00:00
Campbell Barton
66419dcc12 operator & splash button to copy over old settings when blender version changes. 2011-04-11 15:13:06 +00:00
Campbell Barton
28594bc742 minor pep8 edits, also added 'test_pep8' & 'test_cmake' to the GNUmakefile for convenience. 2011-04-10 10:45:56 +00:00
Campbell Barton
dcb26e4e47 fix [#26782] Missing settings in some texture nodes.
also rename noisebasis_2 --> noise_basis_2
2011-04-05 06:05:55 +00:00
Janne Karhu
2f3758e6d1 Bug fix: The quick effect operators got broken a bit by the new material slot behavior.
* The operators now add new materials and assign them to the created material slots explicitly.
2011-04-04 14:35:22 +00:00
Campbell Barton
9decca10e0 missed renaming after api modification, used to cycle proportional edit falloffs with Shift+O. 2011-04-03 22:28:33 +00:00
Thomas Dinges
a5804c2e60 [#26719] Fix AAO Tooltips by Sergej Reich (sergof). Thanks! 2011-04-02 12:54:17 +00:00
Campbell Barton
3ddbb36fa7 modification to api docs so release point to:
http://www.blender.org/documentation/blender_python_api_2_57b_release

Development versions point to:
   http://www.blender.org/documentation/blender_python_api_2_57_0

This way updates to api docs after release wont overwrite release docs.
2011-04-01 15:13:58 +00:00
Campbell Barton
d2a3005dd0 Add back sculpt mode brush keys.
Operator for switching brushes based on type, cycling through brushes when multiple exist.

This has the advantages over the old method that it doenst rely on hard coded brush names and if there are multiple brushes of the same type it cycles between them.

also fix error in previous commit which broke number buttons changing brushes.
2011-04-01 06:14:39 +00:00
Campbell Barton
d4a9bc1c21 while looking into adding back brush tool keys found mixed texture/image paint rna vars, using 'image paint' internally. 2011-04-01 04:22:30 +00:00
Campbell Barton
c8652b301f pep8 checker, mostly pedantic style changes but also found an error in mesh_utils.mesh_linked_faces() 2011-04-01 02:41:15 +00:00
Janne Karhu
e4c656c7bf Fix for [#26694] Quick effects problems: Make Smoke/Fluid on a flat object creates flat domain. On a subdivided mesh create no domain.
* Fluidsim has to be before any constructive modifiers.
* Also a bit nicer domain size calculation + a warning message for using flat objects as fluid objects.
* Some code cleanup and clarification too.
2011-03-31 11:49:01 +00:00
Campbell Barton
9ba57b6518 pass pep8 checker. 2011-03-30 15:02:02 +00:00
Janne Karhu
ce2be37026 Small update to the quick effects operators:
* "Make fur" now creates a basic fur material for each object (smaller strand tip width and a little bit of surface diffuse)
* If fluid/smoke emitters aren't rendered the objects are also set to draw only in wire mode so that the fluid/smoke can be clearly seen.
2011-03-30 13:35:54 +00:00
Janne Karhu
22abd53c7e Quick effects operators:
* A couple of operators to quickly create effects that would otherwise take some time to set up.
* Nice to use for demoing functionality or as a starting point for more complex effects.
* "Make Fur" - Gives every selected mesh object particle fur with a desired density and length.
* "Make Smoke" - Makes each selected object a smoke emitter and creates a new domain object around the emitters with the correct material to render the smoke.
** Has style options for "stream": constant smoke flow, "puff": only create smoke once from the volume of the emitter object, "fire": enable high resolution smoke and set a secondary fire color texture for the domain object.
* "Make Fluid" - Makes every selected object a fluid object (normal/inflow) and has the option to start fluid baking immediately.
* This should provide a nice base for extending these / adding more operators for different effects.
2011-03-30 10:29:32 +00:00
Nathan Letwory
3916b0270e Address [#26641] Texture Quick Edit kicks up error when Editor can't be found
reported by Keith Boshoff (Wahooney)

Instead of a confusing backtrace popup, tell the user the image editor cannot be found, and where to set the path to it.
2011-03-28 13:44:56 +00:00
Martin Poirier
47f9b496b1 [#24658] Switching to "maya" via interaction preset breaks when switching back
[#25045] User Preferences Input, not enough menu choices
[#26525] Saving the Maya preset and another key configs

Untangle keyconfig presets and interaction presets (maya keyconfig would set interaction setting, blender interaction would set keyconfig).

Preset menu on slash screen now displays a list of available keyconfigs (as before) but will also set the correspondant interaction presets, if it exists)
2011-03-27 21:45:37 +00:00
Campbell Barton
9b19c564ef fix for 'View Docs' with inherited properties, eg: "Object.name", is inherited and needs to open the URL of "ID.name". 2011-03-27 06:15:55 +00:00
Joshua Leung
16e736b7db Graph Editor: Euler Filter ported from Py to C
Ported joeedh's Euler Filter code from Python to C so that this is
more in line with the other Graph Editor tools - i.e. joeedh's version
only worked on the active bone's curves, while standard tools could
work with multiple bones/objects at the same time.

To use this new version of this operator:
1) Select all the F-Curves for all 3 of the components (XYZ) for the
euler rotations you wish to clean up. In the Graph Editor, they must
be one after the other (i.e. you can't have "RotX, RotY, something
else, RotZ")
2) Activate the operator from the Key menu in the Graph Editor


In an old test file I have floating around, this method did not appear
to be good enough to fix a very clear discontinuity in the middle of
the action, so I'll test some additional methods too
2011-03-25 03:58:21 +00:00
Campbell Barton
0c03fa78c1 fix [#26601] Python error when use of autocomplete
Was a naming collision with 'keys' python method, reserve keys/items/values/get for python.
Updated animsys_update.py for shapekey data paths.

renamed:
  Particle.hair --> hair_keys
  Particle.keys --> particle_keys
  Key.keys --> key_blocks
  EnumProperty.items --> enum_items
  KeyMap.items --> keymap_items 

noted:
  http://wiki.blender.org/index.php/Dev:2.5/Py/API/Updates#Since_2.56a
2011-03-25 02:12:44 +00:00
Campbell Barton
7735eccc54 fix [#26545] Crash when changing values for properties after changing max-min
tried doing this smarter by validating the property exists in UI code before access but this ended up making it too complicated and also hard to account for possible access without checking every time.

for now just redraw all areas when a user property is changed.
2011-03-24 11:38:20 +00:00
Campbell Barton
72fe34efb2 tweaks not to load webbrowser or math modules on startup. 2011-03-23 13:04:35 +00:00