== 3D View ==
Customizable Grid Subdivisions This commit adds a numbut to the View Properties panel that lets you specify how the grid is subdivided. This affects snapping in translations, obviously. Default: 10 (behavior doesn't change) That means people still stuck in feet and inches (shudders) can set it to 12 and have 1 unit = 1 foot. That also means you can work in "heads" when doing body proportions or whatnot (don't think of it as being limite to "CAD" uses).
This commit is contained in:
@@ -5587,6 +5587,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
|
||||
|
||||
if(main->versionfile <= 242) {
|
||||
Scene *sce;
|
||||
bScreen *sc;
|
||||
Object *ob;
|
||||
Curve *cu;
|
||||
Material *ma;
|
||||
@@ -5594,6 +5595,25 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
|
||||
BezTriple *bezt;
|
||||
BPoint *bp;
|
||||
int a;
|
||||
|
||||
sc= main->screen.first;
|
||||
while(sc) {
|
||||
ScrArea *sa;
|
||||
sa= sc->areabase.first;
|
||||
while(sa) {
|
||||
SpaceLink *sl;
|
||||
|
||||
for (sl= sa->spacedata.first; sl; sl= sl->next) {
|
||||
if(sl->spacetype==SPACE_VIEW3D) {
|
||||
View3D *v3d= (View3D*) sl;
|
||||
if (v3d->gridsubdiv == 0)
|
||||
v3d->gridsubdiv = 10;
|
||||
}
|
||||
}
|
||||
sa = sa->next;
|
||||
}
|
||||
sc = sc->id.next;
|
||||
}
|
||||
|
||||
for(sce= main->scene.first; sce; sce= sce->id.next) {
|
||||
if (sce->toolsettings->select_thresh == 0.0f)
|
||||
|
||||
Reference in New Issue
Block a user