10 years agoGraph Editor part of the changes in the previous commit...
Joshua Leung [Mon, 14 Feb 2011 02:50:52 +0000 (02:50 +0000)]
Graph Editor part of the changes in the previous commit...

10 years agoDopeSheet: Add menu entries and hotkeys to select all keyframes
Joshua Leung [Mon, 14 Feb 2011 02:30:33 +0000 (02:30 +0000)]
DopeSheet: Add menu entries and hotkeys to select all keyframes
left/right to current frame in dope sheet

This commit separates out this selection functionality out of the
click-selection operator into a separate operator, so that hotkeys and
menu entries can be assigned to it.

This is based on an idea+patch (#23738) submitted by Torsten Rupp
(rupp), though I've ultimately decided not to go with the suggested
implementation as I don't think this fits that well under the "column"
select operator.

Todo: Graph Editor support will be coming shortly...

10 years agofix for string copy error in own recent commit
Campbell Barton [Mon, 14 Feb 2011 01:31:44 +0000 (01:31 +0000)]
fix for string copy error in own recent commit

10 years agoFix #26062: gives unappropriate deb version
Sergey Sharybin [Sun, 13 Feb 2011 19:47:57 +0000 (19:47 +0000)]
Fix #26062: gives unappropriate deb version

Added subverison number to debian package version. Quick tests run ok,
but haven't checked if deb version comparation also goes fine.

10 years agoFix #26072: ctrl+LMB on an empty curve make Blender crash
Sergey Sharybin [Sun, 13 Feb 2011 19:04:01 +0000 (19:04 +0000)]
Fix #26072: ctrl+LMB on an empty curve make Blender crash

Crash was caused by keeping active segment index even when this
segment had been deleted. Fixed this and also changed behaviour
of creating new CV for case nothing is selected: new segment with
BEZIER type would be created.

10 years agowarning cleanup.
Campbell Barton [Sun, 13 Feb 2011 15:02:21 +0000 (15:02 +0000)]
warning cleanup.
- fix mistake with grease pencil UI (&& was intended but & used).
- use (void) rather then () across _all_ blenders code.
- a few minor edits, don't shadow stack variables in roll calculation & avoid running memset() for VBO vertex map.

10 years agoPatch 26068
Ton Roosendaal [Sun, 13 Feb 2011 14:55:39 +0000 (14:55 +0000)]
Patch 26068

Fast-gauss node didn't respond to socket-input "Size" factor.
Thanks Philipp Oeser for the fix!

10 years agomany functions in blender are not marked static but should be.
Campbell Barton [Sun, 13 Feb 2011 14:16:36 +0000 (14:16 +0000)]
many functions in blender are not marked static but should be.
most local modifier,GPU,ImBuf and Interface functions are now static.

also fixed an error were the fluid modifier definition and the header didnt have the same number of args.

10 years agoBugfix #26066
Ton Roosendaal [Sun, 13 Feb 2011 13:55:41 +0000 (13:55 +0000)]
Bugfix #26066

Shader node "Mapping" had buttons assuming it stored radians, drawing
the values converted wrongly. In this case the storage has degrees...

10 years agoSmall addition to particle grid distribution:
Janne Karhu [Sun, 13 Feb 2011 13:50:19 +0000 (13:50 +0000)]
Small addition to particle grid distribution:
* New option to distribute particles in a hexagonal grid.
* This is much more stable for fluids than normal grid distribution and looks quite nice otherwise too :)
* Also some small scale code cleanup of grid distribution code.

10 years agocorrected error from commit r34810.
Campbell Barton [Sun, 13 Feb 2011 13:07:12 +0000 (13:07 +0000)]
corrected error from commit r34810.

10 years agofix for error building.
Campbell Barton [Sun, 13 Feb 2011 12:50:40 +0000 (12:50 +0000)]
fix for error building.

10 years agoSome more fixes for particle textures:
Janne Karhu [Sun, 13 Feb 2011 12:35:26 +0000 (12:35 +0000)]
Some more fixes for particle textures:
* Moving a texture slot didn't keep the moved slot active.
* Copy & paste for particle textures didn't work.
* New textures weren't freed properly.

10 years agoFix for [#26053] Blender Crash with Particules Textures
Janne Karhu [Sun, 13 Feb 2011 11:45:04 +0000 (11:45 +0000)]
Fix for [#26053] Blender Crash with Particules Textures
* Particle textures weren't handled properly on texture slot move operations.

10 years agoAdded an operator warning for missing material & texture in response to [#26051]...
Janne Karhu [Sun, 13 Feb 2011 11:32:47 +0000 (11:32 +0000)]
Added an operator warning for missing material & texture in response to [#26051] "Noise" not working.

10 years agofix for warnings from Sparse static source code checker, mostly BKE/BLI and python...
Campbell Barton [Sun, 13 Feb 2011 10:52:18 +0000 (10:52 +0000)]
fix for warnings from Sparse static source code checker, mostly BKE/BLI and python functions.
- use NULL rather then 0 where possible (makes code & function calls more readable IMHO).
- set static variables and functions (exposed some unused vars/funcs).
- use func(void) rather then func() for definitions.

10 years agoRelated to #26061: Camera does not appear selected in outliner when it is
Sergey Sharybin [Sun, 13 Feb 2011 10:34:24 +0000 (10:34 +0000)]
Related to #26061: Camera does not appear selected in outliner when it is

Draw higlighting circle for active camera in outliner

10 years agoFix #26064: blenderplayer is broken
Sergey Sharybin [Sun, 13 Feb 2011 10:28:40 +0000 (10:28 +0000)]
Fix #26064: blenderplayer is broken

This changes were forgotten in svn rev34810. Should work fine now.

10 years agoFix #26059: select_vertex_path fails when vertices aren't selected 1 by 1 in gui
Sergey Sharybin [Sun, 13 Feb 2011 10:25:12 +0000 (10:25 +0000)]
Fix #26059: select_vertex_path fails when vertices aren't selected 1 by 1 in gui

Cicrcle and border selection doesn't add entry to EditSelection. Use cycle
through vertices rather than EditSelection stack to find two selected vertices.

No slowdown for case two vertices are selected (use this cycle to clear temporary
flag too), minor slowdown for unsupported selections.

10 years agoReverting part of 34810
Joshua Leung [Sun, 13 Feb 2011 07:39:43 +0000 (07:39 +0000)]
Reverting part of 34810

The changes here were breaking old rigs, for example the right eyeball
in the Sintel rig (which uses the Mirror Modifier and its vertex-group
mirroring functionality)

10 years agoFixing compiling on windows
Joshua Leung [Sun, 13 Feb 2011 06:19:15 +0000 (06:19 +0000)]
Fixing compiling on windows

10 years agoenforce string limits (reported by pedantic checking tools & some developers).
Campbell Barton [Sun, 13 Feb 2011 03:21:27 +0000 (03:21 +0000)]
enforce string limits (reported by pedantic checking tools & some developers).
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf().
also fix possible crash if CWD isnt available.

10 years agoremove unused var
Campbell Barton [Sun, 13 Feb 2011 02:55:23 +0000 (02:55 +0000)]
remove unused var

10 years agowrong length used with strncmp when comparing RNA path.
Campbell Barton [Sun, 13 Feb 2011 01:59:16 +0000 (01:59 +0000)]
wrong length used with strncmp when comparing RNA path.

10 years agoSmall update for billboards:
Janne Karhu [Sat, 12 Feb 2011 23:25:03 +0000 (23:25 +0000)]
Small update for billboards:
* Renamed the old split uv's animate option "time" to "age" and added a new option to change the used split frame by frame. These are good changes were suggested/implied by Hannu Hoffren over 3 years ago in his tutorial video! (oh my how time flies)
* Also cleaned up the billboard ui quite a bit. For example now the uv channels can be properly chosen from the existing channels.

10 years agoFix for [#25857] create_dupli_list incorrect behaviour with particle systems
Janne Karhu [Sat, 12 Feb 2011 21:54:50 +0000 (21:54 +0000)]
Fix for [#25857] create_dupli_list incorrect behaviour with particle systems
* Particle duplis are now always created with render percentage if G.rendering is set.
* This is not yet a perfect solution (hair for example won't yet work correctly), but
  it's good to have even partial functionality here until a proper way to handle this
  is implemented.

10 years agoSmall particle effectors update:
Janne Karhu [Sat, 12 Feb 2011 17:54:24 +0000 (17:54 +0000)]
Small particle effectors update:
* Greetings from farsthary: particle rotation is now taken into account for particle effector direction.
** This gives all kinds of new possibilities as he shows in his blog
**The only modification I made to his patch was to use the actual rotated particle direction as the effector direction as this defaults to the particle velocity vector, so no actual new options are needed.
* I also added an "effector amount" setting for particle effectors so that only a part of the particles can be considered as effectors. This makes it possible to create simple "farsthary vortexes" with only one particle system.
* Also some tiny reorganization of the falloff min/max values for a nicer ui.

10 years agoSculpting on deformed mesh
Sergey Sharybin [Sat, 12 Feb 2011 17:51:02 +0000 (17:51 +0000)]
Sculpting on deformed mesh

Removed limitation of armatured-only objects for sculpting -- now all
deformation modifiers are allowed in sculpt mode. Use crazyspace corrections
like from transformation modules was used to support all deformation modifiers.

Internal change: all crazyspace-related functions were noved to crazyspace.c

P.S. Brush could make quite unexpected deformation for meshes which are
     deformed in specified way. Got patch for this and discussing with Brecht
 if it's really needed or maybe it could be done in better way.

10 years agoSave one memory block allocation/disposing when propagating changes from
Sergey Sharybin [Sat, 12 Feb 2011 17:28:37 +0000 (17:28 +0000)]
Save one memory block allocation/disposing when propagating changes from
deformed PBVH to the base mesh.

It's not real bottleneck, but crazyspace corrections looks nicer now.
Real bottleneck is normals re-calculation, which calls plenty of
fsqrt's. We could avoid this for some modifiers (which don't use
normals), but such checking would make code less controllable.

10 years agofix for more warnings.
Campbell Barton [Sat, 12 Feb 2011 16:54:24 +0000 (16:54 +0000)]
fix for more warnings.
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array.
- use BLI_snprintf rather then sprintf where the size of the string is known.
- particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).

10 years agoWarning fix to my previous commit. Thanks to nazg-gul for noticing!
Janne Karhu [Sat, 12 Feb 2011 16:06:27 +0000 (16:06 +0000)]
Warning fix to my previous commit. Thanks to nazg-gul for noticing!

10 years agoFixing a recounting bug so KX_Scene.pre_draw.append() and KX_Scene.post_draw.append...
Mitchell Stokes [Sat, 12 Feb 2011 15:44:09 +0000 (15:44 +0000)]
Fixing a recounting bug so KX_Scene.pre_draw.append() and KX_Scene.post_draw.append() work.

10 years agoParticles todo item: particle textures
Janne Karhu [Sat, 12 Feb 2011 14:38:34 +0000 (14:38 +0000)]
Particles todo item: particle textures
* Effecting particle properties with textures was possible in 2.49,
  but not in 2.5 anymore.
* Now particles have their own textures (available in texture panel
  for objects with particle systems), which are totally separate from
  the material textures.
* Currently a basic set of particle properties is available for
  texture control. Some others could still be added, but the whole
  system is not intended as an "change anything with a texture" as
  this kind of functionality will be provided with node particles in
  the future much better.
* Combined with the previously added "particle texture coordinates"
  this new functionality also solves the problem of animating particle
  properties through the particle lifetime nicely.
* Currently the textures only use the intensity of the texture in
  "multiply" blending mode, so in order for the textures to effect
  a particle parameter there has to be a non-zero value defined for
  the parameter in the particle settings. Other blend modes can be
  added later if they're considered useful enough.

10 years ago- fix leak on STL loading if realloc fails.
Campbell Barton [Sat, 12 Feb 2011 14:25:54 +0000 (14:25 +0000)]
- fix leak on STL loading if realloc fails.
- transform code was using sprintf reading and writing the same string (undefined behavior).
- softbody had unneeded NULL check.

10 years agofix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was...
Campbell Barton [Sat, 12 Feb 2011 10:37:37 +0000 (10:37 +0000)]
fix for uninitialized value in BLI_path_cwd() if PWD wasn't defined and the CWD was longer then 160.

10 years agoaccess past array bounds in layerInterp_mdisps, also make some vars const.
Campbell Barton [Sat, 12 Feb 2011 10:18:21 +0000 (10:18 +0000)]
access past array bounds in layerInterp_mdisps, also make some vars const.

10 years agofix for possible (but unlikely) problem with strncpy not adding \0 and then extending...
Campbell Barton [Sat, 12 Feb 2011 09:58:28 +0000 (09:58 +0000)]
fix for possible (but unlikely) problem with strncpy not adding \0 and then extending the string with strcat. use BLI_snprintf instead.

10 years ago- resource leak in pointcache, opendir without closedir()
Campbell Barton [Sat, 12 Feb 2011 09:09:52 +0000 (09:09 +0000)]
- resource leak in pointcache, opendir without closedir()
- reading pointcache was using an incorrect, always NULL variable.
- commented NDof code, was giving warnings and isnt used now.

10 years ago- move into modules.
Campbell Barton [Sat, 12 Feb 2011 08:12:00 +0000 (08:12 +0000)]
- move into modules.
- add gplv2 header
- define __all__ so when importing '*' it wont being in locally defined vars.

10 years agoupdate templates for registration changes
Campbell Barton [Sat, 12 Feb 2011 08:04:32 +0000 (08:04 +0000)]
update templates for registration changes

10 years agofix for building with opencollada 833 on linux.
Campbell Barton [Sat, 12 Feb 2011 06:25:04 +0000 (06:25 +0000)]
fix for building with opencollada 833 on linux.

10 years agoquiet some clang warnings.
Campbell Barton [Sat, 12 Feb 2011 05:12:26 +0000 (05:12 +0000)]
quiet some clang warnings.

10 years agorender stats_background() was giving clang warning about unused argument and wasn...
Campbell Barton [Sat, 12 Feb 2011 01:02:21 +0000 (01:02 +0000)]
render stats_background() was giving clang warning about unused argument and wasn't checking for buffer overrun (though this would be very unlikely).
write to the stdout directly rather then building a string and writing that. (no functional change).

10 years agoSVN maintenance.
Guillermo S. Romero [Fri, 11 Feb 2011 19:36:58 +0000 (19:36 +0000)]
SVN maintenance.

10 years agoBugfix #26021
Ton Roosendaal [Fri, 11 Feb 2011 18:29:52 +0000 (18:29 +0000)]
Bugfix #26021

On certain buttons, and only when not in triple buffer, pressing
RMB "Add shortcut" crashed Blender. NULL check missing.

10 years agoFix #26039: Relative Shapkeys have wrong coordinates after inserting vertices
Sergey Sharybin [Fri, 11 Feb 2011 17:56:25 +0000 (17:56 +0000)]
Fix #26039: Relative Shapkeys have wrong coordinates after inserting vertices

There was invalid memory access for newly created vertices.
Added checking of keyindex value when calculating verticies offsets.

10 years agoFix #26040: Crash converting curve to mesh
Sergey Sharybin [Fri, 11 Feb 2011 17:43:56 +0000 (17:43 +0000)]
Fix #26040: Crash converting curve to mesh

Really stupid mistake :)

10 years agoMade some function from DerivedMesh.c be avaliable from other modules.
Sergey Sharybin [Fri, 11 Feb 2011 15:15:35 +0000 (15:15 +0000)]
Made some function from DerivedMesh.c be avaliable from other modules.
Some naming changes to make naming more uniform. No functional changes.

It's necessery for further crazyspace changes and improvenments.

10 years agoBug fix for problem 2 in [#25973] Bake End Frame Not Configurable
Janne Karhu [Fri, 11 Feb 2011 14:59:19 +0000 (14:59 +0000)]
Bug fix for problem 2 in [#25973] Bake End Frame Not Configurable
* External caches didn't load for smoke straight away. Smoke caches store all necessary info in every file, so no need to try to look for an info file.

10 years agopatch [#25978] mathutils fixes for and
Campbell Barton [Fri, 11 Feb 2011 12:30:17 +0000 (12:30 +0000)]
patch [#25978] mathutils fixes for and
from Filiciss Muhgue (filiciss)

10 years agopatch [#26030] Debian spec fix (Patch for #26028)
Campbell Barton [Fri, 11 Feb 2011 10:29:47 +0000 (10:29 +0000)]
patch [#26030] Debian spec fix (Patch for #26028)
from Shinsuke Irie (irie)

10 years agoRemoved the internal_select parameter from ntreeCopyTree. This was used just in one...
Lukas Toenne [Fri, 11 Feb 2011 09:37:58 +0000 (09:37 +0000)]
Removed the internal_select parameter from ntreeCopyTree. This was used just in one place when duplicating nodes, which is not an actual copying of the tree. The node duplicate operator now copies selected nodes itself.

10 years agoupdate pacman spec for newer python and match naming convention to debian spec.
Campbell Barton [Fri, 11 Feb 2011 09:28:11 +0000 (09:28 +0000)]
update pacman spec for newer python and match naming convention to debian spec.
also pre-compile python modiles.

10 years agoMade group label callback function static.
Lukas Toenne [Fri, 11 Feb 2011 07:46:06 +0000 (07:46 +0000)]
Made group label callback function static.

10 years agoadd torus script wasnt registering.
Campbell Barton [Fri, 11 Feb 2011 03:42:36 +0000 (03:42 +0000)]
add torus script wasnt registering.

10 years agocls.is_registered() class method for python subclasses of internal types.
Campbell Barton [Fri, 11 Feb 2011 02:40:14 +0000 (02:40 +0000)]
cls.is_registered() class method for python subclasses of internal types.
Synonymous with ('bl_rna' in cls.__dict__)

10 years agobpy.utils.register_module() generator could go into eternal loop.
Campbell Barton [Fri, 11 Feb 2011 01:27:00 +0000 (01:27 +0000)]
bpy.utils.register_module() generator could go into eternal loop.

10 years agoUI functions added to existing UI classes (operators adding their own menus for eg),
Campbell Barton [Fri, 11 Feb 2011 01:12:01 +0000 (01:12 +0000)]
UI functions added to existing UI classes (operators adding their own menus for eg),
would stop the entire menu from drawing if they raised an exception.

now print the exception and continue.

Also added a verbose argument for bpy.utils.(un)register_module() to help test whats being registered.

10 years agouse weak references for the internal metaclass typemap,
Campbell Barton [Fri, 11 Feb 2011 00:39:07 +0000 (00:39 +0000)]
use weak references for the internal metaclass typemap,
this should help with blender leaking memory with python classes though the bug is still not fixed.

10 years agominor python register changes.
Campbell Barton [Fri, 11 Feb 2011 00:11:17 +0000 (00:11 +0000)]
minor python register changes.
- KeyingSetInfo classes are now collected like Panels, Operators etc so bpy.utils.register_module() can be used.
- move bpy.types.register() to bpy.utils.register_class

10 years agoBGE: frame start/end in action/fcurves/shapekey to support floats
Dalai Felinto [Fri, 11 Feb 2011 00:03:26 +0000 (00:03 +0000)]
BGE: frame start/end in action/fcurves/shapekey to support floats
after discussion over the mailing-list it seems that it really makes no sense to restrict that. Specially since we have the "Property" playback mode that usually will be a float.

Since there is no need for do_version or whatoever I don't see a problem. Any Thoughts? Maube to allow it only through the Python API?

10 years agopatch [#25809] Auto-Registration as utility function.
Campbell Barton [Thu, 10 Feb 2011 23:48:22 +0000 (23:48 +0000)]
patch [#25809] Auto-Registration as utility function.
This removes auto-registration, committed by Martin r30961.
Realize this is a contentious topic but Brecht and myself both would rather opt-in registration.

- addons need updating.
- class list will be modified to use weakrefs (should have been done for existing system too).
- will move bpy.types.(un)register functions into bpy.utils.(un)register_class, currently including these functions in a type list is internally ugly, scripts which loop over types also need to check for these.

10 years agoDifferent method for blur node aspect correction. Now the user can still set differen...
Lukas Toenne [Thu, 10 Feb 2011 20:54:02 +0000 (20:54 +0000)]
Different method for blur node aspect correction. Now the user can still set different sizes for x/y blurring in relative mode, but choose to use aspect correction on either of the axes.

10 years agoMore options for the blur node filter size. This can now be pixel based or relative...
Lukas Toenne [Thu, 10 Feb 2011 18:54:49 +0000 (18:54 +0000)]
More options for the blur node filter size. This can now be pixel based or relative to both axes or just either width or height.

10 years agoBugfix #26013
Ton Roosendaal [Thu, 10 Feb 2011 17:23:00 +0000 (17:23 +0000)]
Bugfix #26013

Good discovery this one.
It appeared that "pose mode" changes were not registered in our undo system.
That way the first operator you try to redo after exit posemode fails.

10 years agoBugfix #26001
Ton Roosendaal [Thu, 10 Feb 2011 15:47:55 +0000 (15:47 +0000)]
Bugfix #26001

Adding a byte rect to float ImBuf was always freeing the mipmap levels.
Removed this convention since it crashes renders + image texture draw.

Proper ownership handling of ImBuf is high on the wish list :)

10 years agofix for crash with GLSL material when image couldn't be loaded.
Campbell Barton [Thu, 10 Feb 2011 14:59:17 +0000 (14:59 +0000)]
fix for crash with GLSL material when image couldn't be loaded.
also quiet pep8 warnings.

10 years agomesh validation remove duplicate faces didn't always work, now it _should_ all work...
Campbell Barton [Thu, 10 Feb 2011 14:13:13 +0000 (14:13 +0000)]
mesh validation remove duplicate faces didn't always work, now it _should_ all work correctly.

10 years agomesh validation: bugfix for removing doubles, another fix coming...
Campbell Barton [Thu, 10 Feb 2011 12:34:52 +0000 (12:34 +0000)]
mesh validation: bugfix for removing doubles, another fix coming...

10 years agoBugfix [#26004] compositor: backdrop zoom factor too small
Joshua Leung [Thu, 10 Feb 2011 10:24:05 +0000 (10:24 +0000)]
Bugfix [#26004] compositor: backdrop zoom factor too small

The backdrop zoom factor for new node-editor instances was not set
(i.e. was default initialised to 0). Now, this gets set to 1.0.

Also, set the property default in RNA to match this.

10 years agoBugfix [#26002] Outliner Visible layers + Single object & data = broke
Joshua Leung [Thu, 10 Feb 2011 10:14:12 +0000 (10:14 +0000)]
Bugfix [#26002] Outliner Visible layers + Single object & data = broke

It seems that some of the Outliner hacks used while building the tree
was causing problems, as Make Single User (and potentially other code
working with ID-data, specifically with the "newid" value there) was
making use of the variable used there for other purposes, leading to
memory corruption.

This bug also occurred in 2.4x, though when I tested there, it crashed

Ton, you may want to double-check this bug!

10 years agoSmall consistency fixups
Joshua Leung [Thu, 10 Feb 2011 09:39:55 +0000 (09:39 +0000)]
Small consistency fixups

10 years agomesh.validate() now returns True if any corrections were made.
Campbell Barton [Thu, 10 Feb 2011 09:29:31 +0000 (09:29 +0000)]
mesh.validate() now returns True if any corrections were made.
tested that correcting invalid meshes works by generating random meshes and checking that only the first call to mesh.validate() makes changes.

found 2 bugs in mesh validation.
- face sorting array wasn't assigned correct indices.
- removing invalid edges used wrong comparison.

10 years agoscript to build debian packages directly from svn, using blender version and svn...
Campbell Barton [Thu, 10 Feb 2011 07:22:56 +0000 (07:22 +0000)]
script to build debian packages directly from svn, using blender version and svn rev for package name.

10 years agodebian package spec [#26007] Debian spec
Campbell Barton [Thu, 10 Feb 2011 06:11:16 +0000 (06:11 +0000)]
debian package spec [#26007] Debian spec
by Dan Eicher (dna)

10 years agoBugfix [#25831] Sorting channels broken
Joshua Leung [Thu, 10 Feb 2011 05:15:05 +0000 (05:15 +0000)]
Bugfix [#25831] Sorting channels broken

Recoded animation channel sorting code. In particular, the old code
didn't handle "islands" of selected items well (i.e. a chain of
several connected items in a row), with some of these cases having
unpredictable results.

There were also some bugs in the way some of the rearranging methods
worked, allowing some invalid operations to be performed. Some of
these probably triggered errors such as some channels getting stuck,
and so on.

10 years agofix [#26003] Twice applied modifier with Convert to mesh with several multi-user...
Campbell Barton [Thu, 10 Feb 2011 04:48:49 +0000 (04:48 +0000)]
fix [#26003] Twice applied modifier with Convert to mesh with several multi-user objects
convert_exec could do with a re-write, getting quite confusing.

update md5's for ctest results and some renaming in mesh_validate code.

10 years agosmall fix so older files are loaded with merge on in the mirror modifiers
Michael Fox [Thu, 10 Feb 2011 00:44:26 +0000 (00:44 +0000)]
small fix so older files are loaded with merge on in the mirror modifiers

10 years agoSet default for merge mirror to ON
Daniel Salazar [Thu, 10 Feb 2011 00:25:00 +0000 (00:25 +0000)]
Set default for merge mirror to ON

10 years agosmall feature request from zanqdo, merging in the mirror modifier is now optional...
Michael Fox [Thu, 10 Feb 2011 00:05:03 +0000 (00:05 +0000)]
small feature request from zanqdo, merging in the mirror modifier is now optional, simply turning town the merge limit just simply do anything, and merging is off by default as this seems more logical behaviour

10 years agoUpdate mesh normals when undoing sculpt stroke to prevent shading
Sergey Sharybin [Wed, 9 Feb 2011 15:38:49 +0000 (15:38 +0000)]
Update mesh normals when undoing sculpt stroke to prevent shading
artifacts in some cases (enter edit mode/disabling modifiers after undo)

10 years agofix [#25994] Meshes with no vertices gets NaN location on setting origin to geometry
Campbell Barton [Wed, 9 Feb 2011 15:32:39 +0000 (15:32 +0000)]
fix [#25994] Meshes with no vertices gets NaN location on setting origin to geometry

10 years agoBKE_mesh_validate() now corrects invalid meshes (optionally), added access for python...
Campbell Barton [Wed, 9 Feb 2011 15:13:20 +0000 (15:13 +0000)]
BKE_mesh_validate() now corrects invalid meshes (optionally), added access for python so it can correct for bad imported geometry - mesh.validate().

10 years agoRestoring the old behavior of switching texture context based on active tab:
Janne Karhu [Wed, 9 Feb 2011 11:03:11 +0000 (11:03 +0000)]
Restoring the old behavior of switching texture context based on active tab:
* Once again switching to texture panel from material, world or lamp data tab sets the texture context automatically to the "parent context".

10 years agouse static functions rather then defines for internal matrix__apply_to_copy() and...
Campbell Barton [Wed, 9 Feb 2011 09:20:17 +0000 (09:20 +0000)]
use static functions rather then defines for internal matrix__apply_to_copy() and similar.
+ other minor internal changes.

10 years agofix [#25968] Crash on changing merge distance in array modifier with edgesplit modifi...
Campbell Barton [Wed, 9 Feb 2011 04:45:53 +0000 (04:45 +0000)]
fix [#25968] Crash on changing merge distance in array modifier with edgesplit modifier in chain

10 years agobugfix [#25523] Face extrude will crash Blender if array and subsurf modifier are...
Campbell Barton [Wed, 9 Feb 2011 03:49:59 +0000 (03:49 +0000)]
bugfix [#25523] Face extrude will crash Blender if array and subsurf modifier are added to mesh object
test_index_face() failed to fix indices like (6,0,0,6), making it (0,6,6,0).

10 years agoSVN maintenance.
Guillermo S. Romero [Wed, 9 Feb 2011 03:48:40 +0000 (03:48 +0000)]
SVN maintenance.

10 years agomove validation into blender kernel so it can be called by internal modifier funcs...
Campbell Barton [Wed, 9 Feb 2011 02:28:11 +0000 (02:28 +0000)]
move validation into blender kernel so it can be called by internal modifier funcs more easily.

10 years agopatch [#25972] GVFS support
Campbell Barton [Wed, 9 Feb 2011 02:09:30 +0000 (02:09 +0000)]
patch [#25972] GVFS support
from Shinsuke Irie (irie) with some minor edits.

Shinsuke's description from the tracker:
I have implemented GVFS framework support of which allows some file managers like Nautilus and Thunar to show thumbnails in trash or network directories. If Python's gio module is available, the thumbnailer uses it to access to filesystems mounted via GVFS. This change shouldn't affect desktop environments other than GNOME and XFCE.

A function gvfs_open() in this patch is defined to solve a stupid incompatibility between Python file object and GIO Seekable object.

On Ubuntu 10.10, I confirmed thumbnails can be generated for file://, trash://, sftp://, and smb://.

10 years agoGraph Editor: Added option to turn off AA drawing for performance
Joshua Leung [Wed, 9 Feb 2011 02:09:25 +0000 (02:09 +0000)]
Graph Editor: Added option to turn off AA drawing for performance
gains when using really heavy files

10 years agomesh validation function to report errors and help debug bad data generated by modifiers.
Campbell Barton [Wed, 9 Feb 2011 01:27:46 +0000 (01:27 +0000)]
mesh validation function to report errors and help debug bad data generated by modifiers.

- invalid vertex range for edges/faces
- duplicate indices in edge/face
- duplicate edges/faces in mesh
- missing edges data in faces

At the moment it doesn't correct errors, but eventually it will do this.

10 years agoFix for rendering procedual bump maps, mapped in world space, since the new bump...
Michael Fox [Wed, 9 Feb 2011 01:21:03 +0000 (01:21 +0000)]
Fix for rendering procedual bump maps, mapped in world space, since the new bump map kernel uses direction, this bug became a real issue, with bumps suddenly changing direction

Fix provided due to a long session on IRC with Morten S. Mikkelsen (sparky_)

10 years agoOld animation conversion code cleanups:
Joshua Leung [Wed, 9 Feb 2011 01:16:11 +0000 (01:16 +0000)]
Old animation conversion code cleanups:
- Tidying up some inconsistent formatting
- Names of old IPO blocks are now included in the names used for new
actions. These are included after a "CDA:" prefix, (i.e.  "_C_onverted
_D_ata _A_ction:"), which makes it easier to browse through these
actions later.

10 years agoBugfix [#25987] Duplicated markers naming issue
Joshua Leung [Wed, 9 Feb 2011 01:05:40 +0000 (01:05 +0000)]
Bugfix [#25987] Duplicated markers naming issue

One-liner fix - a missing "OPERATOR_FINISHED" on the select operator
was causing problems renaming markers and potentially with other
operations too!

To find this bug, I added debug method to dump the list of markers to
console. This has revealed some troublesome things about the way
markers are organised, which IMO need to be addressed.

10 years agoBugfix: When removing the "only insert for active keyingset" option
Joshua Leung [Wed, 9 Feb 2011 00:52:53 +0000 (00:52 +0000)]
Bugfix: When removing the "only insert for active keyingset" option
for Auto-keying from the UserPrefs, I forgot to remove the option from
the UI there.

10 years agoBugfix [#25990] backward compatibility with ShapeKey Actions :: 2.49
Joshua Leung [Wed, 9 Feb 2011 00:51:30 +0000 (00:51 +0000)]
Bugfix [#25990] backward compatibility with ShapeKey Actions :: 2.49
-> 2.50

Actionified ShapeKey IPO-blocks (i.e. "Shape Key Actions") would have
an action channel with the hardcoded name, "Shape", and this action
would be assigned to Object level (although ShapeKey blocks had their
own IPO-block slot, only Objects could have actions, so actionifying
ShapeKey IPO-blocks would wrap a ShapeKey block's IPO's to an Object-
level action).

Hence, the path conversions code would wrongly interpret this action
channel as referring to a Pose Channel instead, thus creating some
invalid paths with a 'pose.bones["Shape"]' prefix wrongly getting
tacked on. To ensure that the converted animation can work out of the
box, a 'data.shape_keys' prefix is now used instead so that these
actions can still be Object-rooted while still being able to correctly
control the Shape Keys. This is because there's no easy way to
identify and then shift such action from Object-level to ShapeKey-
level within the conversion code. The consequence though is that such
converted ShapeKey actions CAN ONLY BE USED THROUGH OBJECT LEVEL (i.e.
via Action NOT ShapeKey editor).

Secondly, the Action/ShapeKey editor version patching code has been
modified so that if a ShapeKey editor view was active when loading an
old 2.4x file, the action gets cleared from the view. This is because
of this didn't make semantic sense: the ShapeKey editor is for
ShapeKey-rooted actions, while the Action Editor is for Object-rooted
actions. The converted files though let Object-level actions be shown
in either one.

10 years agoignore __pycache__ dir for scons and cmake installation (py3.2 caches modules here).
Campbell Barton [Wed, 9 Feb 2011 00:45:16 +0000 (00:45 +0000)]
ignore __pycache__ dir for scons and cmake installation (py3.2 caches modules here).

10 years agouse update() rather then update_tag(), needed for making edge data.
Campbell Barton [Tue, 8 Feb 2011 21:32:26 +0000 (21:32 +0000)]
use update() rather then update_tag(), needed for making edge data.

10 years agojahka IRC fix
M.G. Kishalmi [Tue, 8 Feb 2011 16:24:00 +0000 (16:24 +0000)]
jahka IRC fix

pinning the texture properties gave python errors.