Commit Graph

22586 Commits

Author SHA1 Message Date
Ton Roosendaal
7fd87de47b Small bug, reported by Andy in irc:
Image editor & texture properties, add new Image, inits 'start' now 
to frame 1 for sequences.

Added triple-X warning in Image Open operator, it uses SpaceImage whilst
it can be called from other editors. Code is safe but not correct.
2010-11-08 19:03:42 +00:00
Sergey Sharybin
f9487fba39 Fixed own mistake from previous commit -- get_levels_from_disps can't be used
when handling topology changes.
Added grid size detection based on totdisp and corners count.
2010-11-08 14:39:36 +00:00
Thomas Dinges
fe53cf2cb4 Patch [#24608] Fix for typo and better indentation in command line help by Susanne H. (sanne). Thanks! 2010-11-08 14:08:22 +00:00
Sergey Sharybin
8647dbc0a6 Fix crash when creating new faces in edit mode
- Do not check corners count if totdisp is set to 0
- Allocate memory for such mdisps to prevent the whole disp layer erasing
2010-11-08 14:00:23 +00:00
Janne Karhu
f15187cfcd Fix for [#24597] Option External in Smoke cache affects settings of start and end frame of simulation
* Don't change anything in the pointcache unless a valid external cache is found.
2010-11-08 11:19:53 +00:00
Janne Karhu
d5a913378f Better name for smoke "gravity" parameter and more descriptive tooltips. 2010-11-08 11:13:46 +00:00
Campbell Barton
cc395e4d2f fix for not being able to select the camera while in the camera view, also draw the camera unscaled in the 3D view. 2010-11-08 09:38:48 +00:00
Janne Karhu
3ca44b5d16 Second fix for [#24476] The driver is not displayed in GraphEditor.
* Texture data still wasn't shown if material didn't have animation data.
* Also unified the material/texture filtering logic a bit.
2010-11-08 09:05:27 +00:00
Campbell Barton
a652544909 change from recent commit. when orbiting out of the camera view switch to the last used perspective. 2010-11-08 03:55:03 +00:00
Campbell Barton
85b9652258 fix for glitches with quad-split view.
- Home or Numpad Period with smoothview disabled were not syncing up the other views.
- Disabling clip only disabled clip syncing but left clip enabled for all views.
- Clip was being calculated for every update even when not enabled.
- The perspective view was being used to copy settings from when changing box & clip settings, resetting the distance each time. Now use one of the aligned views instead.
2010-11-08 03:44:52 +00:00
Campbell Barton
c300d58497 - when orbiting the view out of camera mode use the ortho/persp setting of the camera.
- display the physical size of a ortho camera since, unlike a perspective camera the ortho scale can be converted into a plane with real size.
2010-11-08 02:30:46 +00:00
Joshua Leung
615a2060c9 Bugfix: NLA Channel Borderselect works again 2010-11-08 00:09:31 +00:00
Campbell Barton
55923d1044 compiler warning fixes 2010-11-07 23:22:40 +00:00
Campbell Barton
1e4f0a92f6 [#24594] Edge weighting while making subsurf
use shift+e for crease as in 2.4x
2010-11-07 23:02:08 +00:00
Campbell Barton
8b27e83e5c [#24593] Cloud Depth setting above 30 cause texture corruption
disallow cloud depth over 30, it causes a lot of floating point exceptions (and nan value pixels), because of hitting the int limit with 1<<(oct+1) in BLI_gTurbulence
2010-11-07 22:48:51 +00:00
Andrea Weikert
6900d71ac6 Remove code duplication.
Will look into nicely using uiStyleFontDraw later.
2010-11-07 18:16:27 +00:00
Andrea Weikert
4741dd26d3 Enabled kerning for the default UI font for the places that are using UI_DrawString still and for filebrowser.
Makes text more readable :)
2010-11-07 18:01:32 +00:00
Andrea Weikert
a9f96d1adc fix ford last commit - also remove file from CMakeLists.txt 2010-11-07 17:14:10 +00:00
Andrea Weikert
f5ffb18932 removed unused code for image loading, was copied from 2.49 and never used. 2010-11-07 16:22:25 +00:00
Andrea Weikert
5bf1a6d13b Raised soft limit for cloud texture noise to 24 for easier access. 2010-11-07 16:20:44 +00:00
Campbell Barton
c40725fe5e remove BLI_bfile, has been in blenders source for quite some time but remains unused.
can add back in if its ready to be used ofcourse.
2010-11-07 16:02:17 +00:00
Andrea Weikert
034c956260 fix [#24554] Blender does not remember name of last saved picture
* image name is now set when the file is actually saved if it is empty. Otherwise it is only changed if we're not saving a copy.
* If previous image name is empty, filename will be 'untitled.png' for png saving.

NOTE: if we saved a copy of 'render.png' as render1.png, the save image dialog will be re-opened with the image name that Blender has (render.png) rather than render1.png.
2010-11-07 15:07:14 +00:00
Ton Roosendaal
c7fab53ccb Bugfix #24585
Quad view split 3D window: didn't work for "box lock" option when
using "view all" or "view selected".
Made it work nicely for animated 'smooth' view too.
2010-11-07 14:57:24 +00:00
Joshua Leung
fb20c1b184 Partial fix for NLA Channel-List Border Select. This part of the fix gets the selection ranges right. The next part of the fix (for tomorrow) will involve setting up access for NLA-Track properties... 2010-11-07 12:15:21 +00:00
Joshua Leung
db4609eb08 Animation Editors: Channel Reordering
This commit restores the ability to reorder channels in the animation editors (DopeSheet/Action/etc., Graph/Drivers, NLA). The hotkeys for this are:
- Shift-PageUp = Move Up
- Shift-PageDown = Move Down

- Ctrl-Shift-PageUp = Move to Top of List
- Ctrl-Shift-PageDown = Move to Bottom of List

Do note that only animation data can get reordered using this. 
So, do not expect to be able to change the object order (that is actually taken from the order that Blender actually evaluates them per update/frame).

---

In the process, I've fixed a couple of other bugs:
* Removed 'optimisation step' check in anim_filter.c for dopesheet with no filtering options modified, since this meant that the ANIMFILTER_ANIMDATA data filter was not getting processed (and potentially there were other maintenance problems with that).

* Made NLA Editor's channel list not totally duplicate the basic Animation Channels keymap. Instead, the "NLA Channels" keymap now only defines the parts that are different, and this then gets specified before the standard one so that these different parts will override the standard ones.

* Attempted to fix BorderSelect on NLA Channels list. Still not totally working correctly yet though.

* Moved "Euler Discontinuity" menu entry from "Channels" to "Keys". It really belongs in the latter, since it affects the keyframe values, rather than some aspect of the channel (i.e. ordering of channels or how they're displayed)
2010-11-07 12:09:15 +00:00
Campbell Barton
12770dba0e use RV3D_CAMOB define, theres no reason to use >= comparison either.
also fixed opengl render ortho test.
2010-11-07 10:36:06 +00:00
Campbell Barton
89baa67a40 Inverted the opacity setting for Background Images through RNA.
I was testing with a patched blender where this wasn't a problem else I'd have noticed.
2010-11-07 09:53:39 +00:00
Campbell Barton
ed61900e5e - avoid loop within loop for unique naming function (even though it wasnt likely to run often).
- off by 1 error with outliner naming length. was 1 too short.
2010-11-07 09:33:10 +00:00
Campbell Barton
20b16e4074 de-duplicate unique naming logic, was used in 7 different places, convert into a function call. 2010-11-07 08:49:07 +00:00
Campbell Barton
fbcaa502ca bugfix [#24574] setting location gained from a matrix_world.copy().translation_part() (visual loc) after constraints causes NAN in object location after python script ends
shrinkwrap constraint was dividing by zero. also the shrinkwrap UI was incorrectly trying to draw a subtarget.
2010-11-07 05:59:35 +00:00
Campbell Barton
05e598959e bugfix [#24575] On file save plus and minus don't re-evaluate whether a file exists
actually it was re-evaluated. just the flag was overwritten by the old button.
2010-11-07 05:35:41 +00:00
Campbell Barton
c34275bcab better exception check for calling operators. non dict/None values were being treated as None. 2010-11-07 04:46:50 +00:00
Campbell Barton
231cceaa46 patch [#24577] MESH_OT_noise. Adds missing 2.4x noise vertex displace functionality.
from Dan Eicher (dna) 

Also added a factor option so you can adjust the amount of noise applied.
2010-11-07 03:56:58 +00:00
Campbell Barton
e764868741 committed by mistake 2010-11-07 03:45:55 +00:00
Janne Karhu
8d38358f4b Fix for [#24569] F11 no longer functional after image save
* Same fix was already in ED_area_prevspace().
2010-11-06 22:37:29 +00:00
Janne Karhu
f793b75dcc Fix for [#24476] The driver is not displayed in GraphEditor.
* TSK! give_current_material(..) is used with index+1
* Also very bad practice to use same loop variable name in a loop inside a loop.
2010-11-06 22:23:37 +00:00
Janne Karhu
b0e62b0351 Fix for [#24560] Cloth pinning breaks (when parenting?)
* Changing the pin group needs to redo the whole cloth object.
* Also, parent updates weren't flushed properly to pointcache in depsgraph.
2010-11-06 22:03:42 +00:00
Campbell Barton
e9fa964315 Rename BG image Transparency to Opacity, Since 100% transparency is actually 100% opaque and this matches grease pencil. 2010-11-06 21:40:09 +00:00
Janne Karhu
9e7c968113 Bug fix: Rendering with anti-aliasing disabled and full samples enabled crashed
* Disabling anti-aliasing disables full samples in ui, so do that in render code too.
2010-11-06 21:32:58 +00:00
Andrea Weikert
d475448bdd == filebrowser ==
Added two user preferences for filebrowser:

1. Hide Recent Locations
Requested by Kernon Dillon. Reason: People doing video tutorials might not want to expose the name of other projects they are working on.

2. Open Filebrowser in thumbnail view for images and movies
Requested by Sebastian König at the Blender Conference. Reason: In the past (and most likely still) some corrupt images or movies could crash the filebrowser when generating thumbnails. (crashes in ffmpeg, libtiff, libjpg). While many of those were solved, artists in a production environment might want to use this setting to prevent any crashes.

NOTE: the second setting should probably be set next time we create a new default startup.blend. Until then users need to switch this on manually in the User Preferences.
2010-11-06 18:54:15 +00:00
Brecht Van Lommel
066a1d30bb Fix #24556: N Panel in Compositor doesn't work with Vector Normal node. 2010-11-06 17:55:43 +00:00
Martin Poirier
e686cdae93 [#24565] editors/armature: overwritten return value
Reported by Nicolas Kaiser

(error was turning off some optimization in etch-a-ton)
2010-11-06 17:25:33 +00:00
Sergey Sharybin
5d1ea9e340 Fix crash in several cases when adding bevel on array modifier with merging switched on
Check if edge would be collapsed to single point after mapping in array modifier
2010-11-06 17:19:40 +00:00
Andrea Weikert
5b0e1520cf == filebrowser ==
Center Text underneath the icons in thumbnail view. (Small request from Sergey)
2010-11-06 17:03:11 +00:00
Andrea Weikert
dcda17b3b3 == filebrowser ==
Bringing back missing feature: Create new directory by typing a not existing name into the directory button.

Note: Small issue still with autocomplete -> if typing the new directory directly after autocomplete, it doesn't execute the operator yet.

Also fixed some minor compile/cleanup issues with warning about signed/unsigned comparison and missing header.
2010-11-06 16:09:12 +00:00
Sergey Sharybin
a1c7cccae4 Fix bug with unneeded outline for filled 2d curves when converted to mesh
- Revert of my old change in curve->mesh conversion
- Do not ignore DL_POLYs for surfaces -- they will never be filled,
  but ignore them for 2d curves -- they'll be filled with INDEX3 parts.
2010-11-06 06:22:25 +00:00
Sergey Sharybin
e8501edae2 Read external mdisp when hamdling topology changes 2010-11-05 14:00:31 +00:00
Campbell Barton
66b274766a minor c90 compat edits. (no functional changes). 2010-11-05 13:37:18 +00:00
Campbell Barton
e202aa6e66 dont change the file paths of sequence images, this is weak design because you can easily have 2 image users with different frame numbers so this ends up being which ever was last loaded.
Modified to image user template to show the current filename of the image.
2010-11-05 09:01:00 +00:00
Campbell Barton
e179c92a27 tedious string copying changes
- use sizeof() in more places.
- fixed some off by 1 bugs copying strings. setting curve font family for instance was 1 char too short.
- replace strncpy and strcpy with BLI_strncpy
2010-11-05 07:35:21 +00:00